Part Number Hot Search : 
UGSP15D N5821 15000 BD778 R2080 0441041 UZZ7000T 01400
Product Description
Full Text Search
 

To Download ALC5631Q Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ALC5631Q i 2 c +i 2 s audio codec stereo class-d amp cap-free headphone amp datasheet rev. 0.9 realtek semiconductor corp. no. 2, innovation road ii, hsinchu science park, hsinchu 300, taiwan tel.: +886-3-578-0211. fax: +886-3-577-6047 www.realtek.com free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp ii rev. 0.9 copyright ?2011 realtek semiconductor corp. a ll rights reserved. no part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means without the written permissi on of realtek semiconductor corp. disclaimer realtek provides this document ?as is?, without warranty of any kind. realtek may make improvements and/or changes in this document or in the product de scribed in this document at any time. this document could include technical inaccura cies or typographical errors. trademarks realtek is a trademark of realtek semiconductor cor poration. other names mentioned in this document are trademarks/registered trademar ks of their respective owners. using this document this document is intended for the hardware and software engineer?s general information on the realtek ALC5631Q audio codec ic. though every effort has been made to ensure th at this document is cu rrent and accurate, more information may have become available subsequent to the production of this guide. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp iii rev. 0.9 revision history revision release date summary 0.1 2010/03/01 preliminary version 0.11 2010/3/17 fix typing error 0.2 2010/4/20 1. modify package pin definition 2. add note at mixer path 3. modify alc block 4. modify pin location for typing error 5. modify application circuit 0.3 2010/5/4 1. modify figure 3 2. modify application circuit 3. add more description 0.4 2010/8/18 1. modify some typing error 2. modify application circuit 3. modify order information to ?sample? 0.5 2010/9/21 1. modify performance information 2. modify application circuit 0.61 2010/9/27 1. modify some typos 0.62 2010/12/13 1. modify typos in register list 2. update operation voltage for avdd 3. modify application circuit 0.9 2011/1/20 1. modify registers 2. modify mixer path free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp iv rev. 0.9 table of contents 1. general desc ription ............................................................................................................ ..................................1 2. features ....................................................................................................................... ..................................................1 3. system application ............................................................................................................. ....................................2 4. function block and mixer path .................................................................................................. ...................2 4.1. f unction b lock ............................................................................................................................... .........................2 4.2. a udio m ixer p ath ............................................................................................................................... ......................3 5. pin assignments ................................................................................................................ .........................................4 5.1. g reen p ackage and v ersion i dentification ........................................................................................................4 6. pin descriptions............................................................................................................... ..........................................5 6.1. d igital i/o p ins ............................................................................................................................... ..........................5 6.2. a nalog i/o p ins ............................................................................................................................... .........................6 6.3. f ilter /r eference ............................................................................................................................... .......................7 6.4. p ower /g round ............................................................................................................................... ...........................7 7. function description ........................................................................................................... .................................8 7.1. p ower ............................................................................................................................... ..........................................8 7.2. r eset ............................................................................................................................... ...........................................8 7.2.1. power-on re set (por) ........................................................................................................... ...............................9 7.2.2. h/w reset ...................................................................................................................... .........................................9 7.2.3. software reset ................................................................................................................. .......................................9 7.3. c locking ............................................................................................................................... .....................................9 7.3.1. phase-locked loop .............................................................................................................. ................................10 7.3.2. i 2 c and stereo i 2 s.............................................................................................................................. ...................10 7.4. d igital d ata i nterface ............................................................................................................................... .........11 7.4.1. stereo i 2 s/pcm inte rface ................................................................................................................ .....................11 7.5. a udio d ata p ath ............................................................................................................................... .....................14 7.5.1. stereo adc..................................................................................................................... ......................................14 7.5.2. stereo dac..................................................................................................................... ......................................14 7.5.3. mixers......................................................................................................................... ..........................................14 7.6. a nalog a udio i nput p ath ............................................................................................................................... ......15 7.7. a nalog a udio o utput p ath ............................................................................................................................... ...16 7.8. alc f unction ............................................................................................................................... ..........................17 7.9. s peaker a mplifier r atio g ain ..............................................................................................................................2 0 7.10. h ardware s ound p rocessing ............................................................................................................................... 21 7.10.1. equalizer block................................................................................................................ ................................21 7.10.2. pseudo stereo and spatial 3d sound ............................................................................................. .................21 7.10.3. wind noise re duction filter.................................................................................................... ........................21 7.11. i 2 c c ontrol i nterface ............................................................................................................................... ...........22 7.11.1. address setting ................................................................................................................ ................................22 7.11.2. complete data transfer ......................................................................................................... .........................22 7.11.3. odd-addressed re gister access .................................................................................................. ....................23 7.12. gpio, i nterrupt and j ack d etection ..................................................................................................................23 7.13. p ower m anagement ............................................................................................................................... ................25 8. registers list ................................................................................................................. ..........................................26 8.1. r eg -00 h : r eset ............................................................................................................................... .........................26 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp v rev. 0.9 8.2. r eg -02 h : s peaker o utput c ontrol .....................................................................................................................26 8.3. r eg -04 h : h eadphone o utput c ontrol ................................................................................................................27 8.4. r eg -06 h : o utput c ontrol for axo1/axo2/monoout .................................................................................28 8.5. r eg -0a h : aux input v olume c ontrol .............................................................................................................29 8.6. r eg -0c h : stereo dac c ontrol 1 ......................................................................................................................29 8.7. r eg -0e h : m icrophone i nput c ontrol .................................................................................................................30 8.8. r eg -10 h : stereo dac c ontrol 2 .......................................................................................................................30 8.9. r eg -12 h : s tereo adc c ontrol 1..........................................................................................................................30 8.10. r eg -14 h : adc r ecording m ixer c ontrol ..........................................................................................................31 8.11. r eg -16 h : s tereo adc c ontrol 2..........................................................................................................................32 8.12. r eg -1a h : l eft o utput m ixer (outmixl) c ontrol ..........................................................................................32 8.13. r eg -1c h : r ight o utput m ixer (outmixr) m ixer c ontrol ............................................................................33 8.14. r eg -1e h : axo1mix c ontrol ............................................................................................................................... 33 8.15. r eg -20 h : axo2mix c ontrol ............................................................................................................................... .35 8.16. r eg -22 h : m icrophone i nput c ontrol ..................................................................................................................36 8.17. r eg -24 h : d igital m icrophone c ontrol ..............................................................................................................37 8.18. r eg -26 h : monoin i nput v olume .........................................................................................................................38 8.19. r eg -28 h : s peaker m ixer c ontrol ........................................................................................................................38 8.20. r eg -2a h : s peaker /m ono o utput c ontrol .........................................................................................................39 8.21. r eg -2c h : s peaker /m ono /hp o utput c ontrol ...................................................................................................41 8.22. r eg -34 h : s tereo i 2 s s erial d ata p ort c ontrol ................................................................................................42 8.23. r eg -38 h : s tereo adc/dac c lock c ontrol .......................................................................................................43 8.24. r eg -3a h : p ower m anagement 1...........................................................................................................................44 8.25. r eg -3b h : p ower m anagement 2...........................................................................................................................45 8.26. r eg -3c h : p ower m anagement 3...........................................................................................................................46 8.27. r eg -3e h : p ower m anagement 4 ...........................................................................................................................47 8.28. r eg -40 h : g eneral p urpose c ontrol r egister ...................................................................................................48 8.29. r eg -42 h : g lobal c lock c ontrol ........................................................................................................................49 8.30. r eg -44 h : pll c ontrol ............................................................................................................................... ............49 8.30.1. pll clock setting table for 48k: (u nit: mhz)................................................................................... ............50 8.30.2. pll clock setting table fo r 44.1k: (unit: mhz)................................................................................. ...........50 8.31. r eg -48 h : i nternal s tatus and irq c ontrol 1 ..................................................................................................50 8.32. r eg -4a h : i nternal s tatus and irq c ontrol 2..................................................................................................51 8.33. r eg -4c h : gpio c ontrol ............................................................................................................................... .........51 8.34. r eg -52 h : misc. c ontrol ............................................................................................................................... ........52 8.35. r eg -56 h : d e -pop f unction c ontrol ...................................................................................................................54 8.36. r eg -5a h : j ack d etection c ontrol ......................................................................................................................55 8.37. r eg -5c h : s oft v olume c ontrol ..........................................................................................................................57 8.38. r eg -64 h : alc c ontrol 1 .............................................................................................................................. .........58 8.39. r eg -65 h : alc c ontrol 2 .............................................................................................................................. .........59 8.40. r eg -66 h : alc c ontrol 3 .............................................................................................................................. .........59 8.41. r eg -68 h : p seudo s tereo and s patial e ffect c ontrol .....................................................................................60 8.42. r eg -6a h : i ndex a ddress ............................................................................................................................... ........61 8.43. r eg -6c h : i ndex d ata ............................................................................................................................... ..............61 8.44. r eg -6e h : eq c ontrol 1 .............................................................................................................................. ...........61 8.45. i ndex -00 h : eq l ow p ass f ilter c oefficient (lpf: a 1) ......................................................................................63 8.46. i ndex -01 h : eq l ow p ass f ilter g ain (lpf: h o )..................................................................................................63 8.47. i ndex -02 h : eq b and p ass f ilter 1 c oefficient (bpf1: a 1)................................................................................63 8.48. i ndex -03 h : eq b and p ass f ilter 1 c oefficient (bpf1: a 2)................................................................................63 8.49. i ndex -04 h : eq b and p ass f ilter 1 g ain (bpf1: h o ) ...........................................................................................64 8.50. i ndex -05 h : eq b and p ass f ilter 2 c oefficient (bpf2: a 1)................................................................................64 8.51. i ndex -06 h : eq b and p ass f ilter 2 c oefficient (bpf2: a 2)................................................................................64 8.52. i ndex -07 h : eq b and p ass f ilter 2 g ain (bpf2: h o ) ...........................................................................................64 8.53. i ndex -08 h : eq b and p ass f ilter 3 c oefficient (bpf3: a 1)................................................................................65 8.54. i ndex -09 h : eq b and p ass f ilter 3 c oefficient (bpf3: a 2)................................................................................65 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp vi rev. 0.9 8.55. i ndex -0a h : eq b and p ass f ilter 3 g ain (bpf3: h o ) ..........................................................................................65 8.56. i ndex -0b h : eq h igh p ass f ilter 1 c oefficient (hpf1: a 1)................................................................................65 8.57. i ndex -0c h : eq h igh p ass f ilter 1 g ain (hpf1: h o ) ...........................................................................................66 8.58. i ndex -0d h : eq h igh p ass f ilter 2 c oefficient (hpf2: a 1) ...............................................................................66 8.59. i ndex -0e h : eq h igh p ass f ilter 2 c oefficient (hpf2: a 2)................................................................................66 8.60. i ndex -0f h : eq h igh p ass f ilter 2 g ain (hpf2: h o )............................................................................................66 8.61. i ndex -11 h : eq i nput v olume c ontrol ................................................................................................................66 8.62. i ndex -12 h : eq o utput v olume c ontrol .............................................................................................................67 8.63. i ndex -20 h : alc dac d igital v olume .................................................................................................................67 8.64. i ndex -21 h : a uto v olume c ontrol r egister 1 ...................................................................................................68 8.65. i ndex -22 h : a uto v olume c ontrol r egister 2 ...................................................................................................69 8.66. i ndex -23 h : a uto l evel c ontrol r egister 3 ....................................................................................................71 8.67. i ndex -4a h : c lass -d internal r egister .............................................................................................................71 8.68. r eg -7c h : v endor id 1 .............................................................................................................................. ..............72 9. electrical char acteristics ..................................................................................................... .....................73 9.1. dc c haracteristics ............................................................................................................................... ................73 9.1.1. absolute maxi mum ratings ....................................................................................................... ...........................73 9.1.2. recommended oper ating conditions ............................................................................................... ....................73 9.1.3. static charac teris tics ......................................................................................................... ..................................73 9.2. a nalog p erformance c haracteristics ..............................................................................................................74 9.3. s ignal t iming ............................................................................................................................... ...........................77 9.3.1. i 2 c control in terface............................................................................................................ ................................77 9.3.2. i 2 s/pcm interface master mode .................................................................................................... ......................78 9.3.3. i 2 s/pcm interfa ce slave mode..................................................................................................... ........................79 10. application circuits ........................................................................................................... ............................80 11. mechanical dimensions.......................................................................................................... .......................81 12. ordering information ........................................................................................................... ........................82 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp vii rev. 0.9 list of tables t able 1. d igital i/o p ins ............................................................................................................................... ...........................5 t able 2. a nalog i/o p ins ............................................................................................................................... ...........................6 t able 3. f ilter /r eference ............................................................................................................................... ........................7 t able 4. p ower /g round ............................................................................................................................... ............................7 t able 5. p ower s upply for b est p erformance .....................................................................................................................8 t able 6. p ower s upply for l eakage c urrent ......................................................................................................................8 t able 7. r eset o peration ............................................................................................................................... .........................8 t able 8. p ower -o n r eset v oltage ............................................................................................................................... ..........9 t able 9. c lock s etting t able for 48k (u nit : mh z ) ..........................................................................................................10 t able 10. c lock s etting t able for 44.1k (u nit : mh z ) .....................................................................................................10 t able 11. r ation g ain t able for spkvdd ......................................................................................................................... 20 t able 12. s ample r ate with bandwidth for w ind f ilter .................................................................................................21 t able 13. a ddress s etting (0 x 34 h ).............................................................................................................................. .........22 t able 13. w rite word p rotocol ............................................................................................................................... .........22 t able 14. r ead word p rotocol ............................................................................................................................... ...........22 t able 14. r eg -00 h : r eset ............................................................................................................................... ........................26 t able 15. r eg -02 h : s peaker o utput c ontrol .....................................................................................................................26 t able 16. r eg -04 h : h eadphone o utput c ontrol ...............................................................................................................27 t able 17. r eg -06 h : o utput c ontrol for axo1/axo2/monoout.................................................................................28 t able 18. r eg -0a h : aux input v olume c ontrol ............................................................................................................29 t able 19. r eg -0c h : stereo dac c ontrol 1......................................................................................................................29 t able 20. r eg -0e h : m icrophone i nput c ontrol .................................................................................................................30 t able 21. r eg -10 h : stereo dac c ontrol 2 ......................................................................................................................30 t able 22. r eg -12 h : s tereo adc c ontrol 1 .........................................................................................................................30 t able 23. r eg -14 h : adc r ecording m ixer c ontrol .........................................................................................................31 t able 24. r eg -16 h : s tereo adc c ontrol 2 .........................................................................................................................32 t able 25. r eg -1a h : l eft o utput m ixer c ontrol ...............................................................................................................32 t able 26. r eg -1c h : r ight o utput m ixer c ontrol .............................................................................................................33 t able 27. r eg -1e h : axo1 m ixer c ontrol ...........................................................................................................................34 t able 28. r eg -20 h : axo2 m ixer c ontrol ...........................................................................................................................35 t able 29. r eg -22 h : m icrophone i nput c ontrol .................................................................................................................36 t able 30. r eg -24 h : d igital m icrophone c ontrol .............................................................................................................37 t able 31. r eg -26 h : monoin i nput v olume ........................................................................................................................38 t able 32. r eg -28 h : s peaker m ixer c ontrol .......................................................................................................................38 t able 33. r eg -2a h : s peaker /m ono o utput c ontrol ........................................................................................................39 t able 34. r eg -2c h : s peaker /m ono /hp o utput c ontrol ...................................................................................................41 t able 35. r eg -34 h : s tereo i 2 s s erial d ata p ort c ontrol ...............................................................................................42 t able 36. r eg -38 h : s tereo adc/dac c lock c ontrol ......................................................................................................43 t able 37. r eg -3a h : p ower m anagement 1 ..........................................................................................................................44 t able 38. r eg -3b h : p ower m anagement 2 ..........................................................................................................................45 t able 39. r eg -3c h : p ower m anagement 3 ..........................................................................................................................46 t able 40. r eg -3e h : p ower m anagement 4 ..........................................................................................................................47 t able 41. r eg -40 h : g eneral p urpose c ontrol r egister ..................................................................................................48 t able 42. r eg -42 h : g lobal c lock c ontrol ........................................................................................................................49 t able 43. r eg -44 h : pll c ontrol ............................................................................................................................... ...........49 t able 44. pll c lock s etting t able for 48k: (u nit : mh z ) ...............................................................................................50 t able 45. pll c lock s etting t able for 44.1k: (u nit : mh z ) ............................................................................................50 t able 46. r eg -48 h : i nternal s tatus and irq c ontrol 1..................................................................................................50 t able 47. r eg -4a h : i nternal s tatus and irq c ontrol 2 .................................................................................................51 t able 48. r eg -4c h : gpio c ontrol ............................................................................................................................... ........52 t able 49. r eg -52 h : misc. c ontrol ............................................................................................................................... ........52 t able 50. r eg -54 h : d e -pop f unction c ontrol 1................................................................................................................53 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp viii rev. 0.9 t able 51. r eg -56 h : d e -pop f unction c ontrol ...................................................................................................................54 t able 52. r eg -5a h : j ack d etection c ontrol .....................................................................................................................55 t able 53. r eg -5c h : s oft v olume c ontrol ..........................................................................................................................57 t able 54. r eg -64 h : alc c ontrol 1.............................................................................................................................. .........58 t able 55. r eg -65 h : alc c ontrol 2.............................................................................................................................. .........59 t able 56. r eg -66 h : alc c ontrol 3.............................................................................................................................. .........59 t able 57. r eg -68 h : p seudo s tereo and s patial e ffect c ontrol .....................................................................................60 t able 58. r eg -6a h : i ndex a ddress ............................................................................................................................... ........61 t able 59. r eg -6c h : i ndex d ata ............................................................................................................................... ..............61 t able 60. r eg -6e h : eq c ontrol 1.............................................................................................................................. ...........61 t able 61. i ndex -00 h : eq l ow p ass f ilter c oefficient (lpf: a 1)......................................................................................63 t able 62. i ndex -01 h : eq l ow p ass f ilter g ain (lpf: h o ) .................................................................................................63 t able 63. i ndex -02 h : eq b and p ass f ilter 1 c oefficient (bpf1: a 1)...............................................................................63 t able 64. i ndex -03 h : eq b and p ass f ilter 1 c oefficient (bpf1: a 2)...............................................................................64 t able 65. i ndex -04 h : eq b and p ass f ilter 1 g ain (bpf1: h o ) ..........................................................................................64 t able 66. i ndex -05 h : eq b and p ass f ilter 2 c oefficient (bpf2: a 1)...............................................................................64 t able 67. i ndex -06 h : eq b and p ass f ilter 2 c oefficient (bpf2: a 2)...............................................................................64 t able 68. i ndex -07 h : eq b and p ass f ilter 2 g ain (bpf2: h o ) ..........................................................................................64 t able 69. i ndex -08 h : eq b and p ass f ilter 3 c oefficient (bpf3: a 1)...............................................................................65 t able 70. i ndex -09 h : eq b and p ass f ilter 3 c oefficient (bpf3: a 2)...............................................................................65 t able 71. i ndex -0a h : eq b and p ass f ilter 3 g ain (bpf3: h o ) .........................................................................................65 t able 72. i ndex -0b h : eq h igh p ass f ilter 1 c oefficient (hpf1: a 1) ...............................................................................65 t able 73. i ndex -0c h : eq h igh p ass f ilter 1 g ain (hpf1: h o ) ..........................................................................................66 t able 74. i ndex -0d h : eq h igh p ass f ilter 2 c oefficient (hpf1: a 1)...............................................................................66 t able 75. i ndex -0e h : eq h igh p ass f ilter 2 c oefficient (hpf1: a 2) ...............................................................................66 t able 76. i ndex -0f h : eq h igh p ass f ilter 2 g ain (hpf2: h o )...........................................................................................66 t able 77. i ndex -11 h : eq i nput v olume c ontrol ...............................................................................................................67 t able 78. i ndex -12 h : eq o utput v olume c ontrol ............................................................................................................67 t able 79. i ndex -20xx h : alc dac d igital v olume ..........................................................................................................67 t able 80. i ndex -21 h : a uto v olume c ontrol r egister 1 ..................................................................................................68 t able 81. i ndex -22 h : a uto v olume c ontrol r egister 2 ..................................................................................................69 t able 82. i ndex -23 h : a uto l evel c ontrol r egister 3 ......................................................................................................71 t able 83. i ndex -4a h : c lass -d internal r egister ..............................................................................................................71 t able 84. r eg -7c h : v endor id 1 .............................................................................................................................. .............72 t able 85. a bsolute m aximum r atings ............................................................................................................................... .73 t able 86. r ecommended o perating c onditions .................................................................................................................73 t able 87. s tatic c haracteristics ............................................................................................................................... .........73 t able 88. a nalog p erformance c haracteristics .............................................................................................................74 t able 89. t hermal i nformation ............................................................................................................................... ............76 t able 90. i 2 c t iming ............................................................................................................................... .................................77 t able 91. t iming of i 2 s/pcm m aster m ode .........................................................................................................................78 t able 92. i 2 s/pcm s lave m ode t iming ............................................................................................................................... ..79 t able 93. o rdering i nformation ............................................................................................................................... ...........82 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp ix rev. 0.9 list of figures f igure 1. b lock d iagram ............................................................................................................................... ........................2 f igure 2. a udio m ixer p ath ............................................................................................................................... ....................3 f igure 3. p in a ssignments ............................................................................................................................... .......................4 f igure 4. a udio sysclk ......................................................................................................................... ...............................9 f igure 5. pcm mono d ata m ode a f ormat (bclk polarity=0) ..............................................................................11 f igure 6. pcm mono d ata m ode a f ormat (bclk polarity=1) ..............................................................................12 f igure 7. pcm mono d ata m ode b f ormat (bclk polarity=0) ..............................................................................12 f igure 8. pcm s tereo d ata m ode a f ormat (bclk polarity=0)..............................................................................12 f igure 9. pcm s tereo d ata m ode b f ormat (bclk polarity=0) ..............................................................................13 f igure 10. i 2 s d ata f ormat (bclk polarity=0) ...........................................................................................................13 f igure 11. l eft -j ustified d ata f ormat (bclk polarity=0) ........................................................................................13 f igure 12. a uto l evel c ontrol b lock d iagram ..............................................................................................................17 f igure 13. alc for p layback m ode ............................................................................................................................... ....18 f igure 14. alc for r ecording m ode ............................................................................................................................... ...19 f igure 15. r atio g ain for spkvdd and avdd ................................................................................................................20 f igure 16. d ata t ransfer o ver i 2 c c ontrol i nterface .................................................................................................22 f igure 17. irq/j ack d etection f unction b lock ..............................................................................................................24 f igure 18. i 2 c c ontrol i nterface ............................................................................................................................... ........77 f igure 19. t iming of i 2 s/pcm m aster m ode ......................................................................................................................78 f igure 20. i 2 s/pcm s lave m ode t iming ..............................................................................................................................7 9 f igure 21. a pplication c ircuit ............................................................................................................................... .............80 f igure 22. p ackage d imension ............................................................................................................................... ..............81 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 1 rev. 0. 5 1. general description the ALC5631Q is a high performance and powerful i 2 s codec for portable devices. multi-function configuration for inpu t and output port can flexible for using. differential input mode can effective to cancel the common-mode noise for input signal. and singl e-ended input mode can easy be used for external income signal. with wide range volume control can be used for each path whether analog to digital path, analog to analog path or dig ital to analog path. an analog input to analog output path is bypass adc and dac that can keep original performance to output for income signal. in this bypass mode, can into the ultra low power mode by shutdown unused block. the powerful auto-level-control (alc) function is fo r playback and record. for playback, it will keep the same output level when different input level. and prevent the output signal be clipped when speaker power is dropping or huge input si gnal. for record, it can effective to reduce the background noise for voice recording. wide range power supply and low power consumpti on on ALC5631Q is suitable for portable devices. also 48-ball qfn (6mm x 6mm) package is used by ALC5631Q. 2. features ? digital-to-analog converter wi th 100dba snr and ?90db thd+n ? analog-to-digital converter wi th 93dba snr and ?88db thd+n ? stereo btl (bridge-tied load) class-d am plifier and with 650mw/ch output power (spkvdd=3.6v, thd = 1%, 8 load) ? stereo headphone output and wit hout dc blocking capacitors. (with 45mw/ch driving power, 3.3v, 16 load) ? 3 analog differential inputs a nd 1 stereo single-ended input ? stereo differential analog mi crophone inputs with boost pre-amp lifiers and low noise microphone bias ? differential earpiece amp output ? stereo single-end or one differential line output ? audio jack insert detection and microphone switch detection ? power management and enhanced power saving ? support flexible digital 6 bands equalizer (eq) ? support digital spatial sound and pseudo stereo effect ? zero detection and soft vol ume for pop noise suppression ? inside pll can receive wide range clock input ? support i 2 c control interface ? 24bit/8khz ~ 192khz i 2 s/pcm interface for stereo dac ? 24bit/8khz ~ 96khz i 2 s/pcm interface for stereo adc ? support enhanced auto level control (a lc) function for playback and record ? support digital microphone interface ? qfn-48 (6mm x 6mm) package free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 2 rev. 0.9 3. system application ? smartbook ? netbook 4. function block and mixer path 4.1. function block mic1p mic1n monoin_p monoin_n axi_l/jd1 axi_r/jd2 boost adc_l adc_r alc 6-band eq 3d effect dacl dacr output mixer digital audio interface bclk lrck dacdat adcdat axo1_l/p axo1_r/n spo_lp spo_rp spo_ln spo_rn ldac rdac spo_l_vol drc spo_r_vol drc i 2 c control scl sda micbias1 micbias2 pll mclk hpo_l_vol hpo_r_vol ldac rdac hpo_l hpo_r cpn cpp cp_vref cpvee vref avdd agnd spkdd2 spkgnd dcvdd dgnd dbvdd spkdd1 spkgnd adc volume high pass filter dac volume high pass filter cpvdd headphone block cpgnd d_scl dmic interface d_sda/gpio micbias1 micbias2 reference voltage mono_l_vol mono_r_vol monoout_p monoout_n mic2p mic2n axo2_l/p axo2_r/n input mixer avdd avdd avdd out_vol cdepop figure 1. block diagram free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 3 rev. 0.9 4.2. audio mixer path spolmix outmixl class d amp spo_lp spo_ln hpo_l hpo_r monoout _p monoout _n (-46. 5 ~ +12db , 1.5db/ step) (-46. 5 ~ +12db, 1.5db/step) (-46. 5 ~ 0db, 1.5db/step) (-46. 5 ~ 0db, 1.5db/step) spkvoll spkvolr outvolr outvoll dacl axo1 mix outmixl outmixr -34.5~+12db,1.5db/ step -34.5~+12db,1.5db/ step -34.5~+12db,1.5db/ step monoin _p monoin _n axil recmixl recmixr 20/30/40/50 20/30/40/50db bst1n bst2p bst2n adcr adcl dacl dacr filter & digital volume adcdat dacdat alc drc 3d ( only dac ) eq a/u- law ad- da loop back da- ad loop back voice adc ad- da loop back da- ad loop back loop back dsp block only one of adc and dac pass dsp axir -34.5~+12db,1.5db/ step rxn rxp (-46. 5 ~ 0db, 1.5db/step) hpovoll (-46. 5 ~ 0db, 1.5db/step) hpovolr dacr zcd filter & digital volume filter & digital volume filter & digital volume spkmixl spkmixr axo1_r/n axo1_l/p vmid vmid bst1p mic1p mic1n mic2p mic2n outmixl rx rx axilvol axirvol bst1 bst2 outmixr recmixl mic1p recmixl dacl recmixr bst1 bst2 rxn axilvol axirvol axilvol axirvol bst1 bst2 rxp recmixl recmixr recmixr mic2p dacr sel_lin_hp sel_rin_hp zcd zcd zcd vmid vmid vmid vmid vmid vmid vmid -21 ~ 0 db,3 db/ step bst2p bst2n -21 ~ 0 db,3 db/ step bst1p bst1n axo2 mix axo2_r/n axo2_l/p -21~ 0db,3db/step bst2p bst2n -21~ 0db,3db/step bst1p bst1n rxp rxn daclp dacln sel_ spol spormix class d amp spo_rp spo_rn rxp rxn daclp dacln sel_spor monomix rxp rxn sel_ mono en_rx_se reg-0e[15] reg-22[15:12] reg-0a[12:8] reg-26[12:8] reg-26[4:0] reg-0a[4:0] reg-0e[7] reg-22[11:8] reg-14[4] reg-14[5] reg-14[6] reg-14[7] reg-14[15] reg-14[14] reg-14[13] reg-14[12] reg-28[15] reg-28[14] reg-28[13] reg-28[12] reg-1a[15] reg-1a[14] reg-1a[13] reg-1a[12] reg-1a[11] reg-1a[10] reg-1a[9] reg-1a[8] reg-1c[15] reg-1c[14] reg-1c[13] reg-1c[12] reg-1c[11] reg-1c[10] reg-1c[9] reg-1c[8] reg-28[7] reg-28[6] reg-28[5] reg-28[4] reg-02[5:0] reg-02[6] reg-04[4:0] reg-04[6] reg-06[4:0] reg-06[6] reg-06[14] reg-06[12:8] reg-04[12:8] reg-04[14] reg-02[13:8] reg-02[14] reg-1e[14:12] reg-1e[10:8] reg-2a[15] reg-2a[14] reg-2a[11] reg-2a[10] reg-2a[13] reg-2a[12] reg-20[14:12] reg-20[10:8] reg-20[15] reg-20[7] reg-20[6] reg-20[11] reg-02[7] reg-2c[11:10] reg-06[13] reg-2c[7:6] reg-04[7] reg-2c[2] reg-02[15] reg-2c[15:14] reg-04[15] reg-2c[3] reg-06[15] reg-1e[15] reg-1e[7] reg-1e[6] reg-1e[11] reg-06[7] outmixr recmixr recmixl dmic alc 6 band equalizer 3 d effect a/u- law figure 2. audio mixer path free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 4 rev. 0.9 5. pin assignments figure 3. pin assignments 5.1. green package and version identification green package is indicated by a ?g? in the location marked ?y? in figure 3. th e version number is shown in the location marked ?v?. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 5 rev. 0.9 6. pin descriptions 6.1. digital i/o pins table 1. digital i/o pins name type pin description characteristic definition dacdat i 30 serial i 2 s data input schmitt trigger (v il =0.35*dbvdd, v ih =0.65*dbvdd) adcdat o 31 serial i 2 s data output v ol =0.1*dbvdd, v oh =0.9*dbvdd bclk i/o 32 i 2 s interface serial bit clock master: v ol =0.1*dvdd, v oh =0.9*dvdd slave: schmitt trigger lrck i/o 33 i 2 s interface synchronous signal master: v ol =0.1*dvdd, v oh =0.9*dvdd slave: schmitt trigger sda i/o 34 i 2 c serial data open drain structure scl i 35 i 2 c clock input schmitt trigger (v il =0.35*dbvdd, v ih =0.65*dbvdd) mclk i 36 i 2 s master clock input schmitt trigger (v il =0.35*dbvdd, v ih =0.65*dbvdd) dmic_sda /gpio i/o 37 digital microphone data general purpose input and output input: schmitt trigger (v il =0.35*dbvdd, v ih =0.65*dbvdd) output: v ol =0.1*dbvdd, v oh =0.9*dbvdd dmic_scl o 38 digital microphone clock output: v ol =0.1*dbvdd, v oh =0.9*dbvdd /rst i 42 hardware reset schmitt trigger (v il =0.35*dbvdd, v ih =0.65*dbvdd) total: 10 pins free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 6 rev. 0.9 6.2. analog i/o pins table 2. analog i/o pins name type pin description characteristic definition axo2_l/p o 2 auxiliary output 2 left output channel differential positive output channel analog output axo2_r/n o 3 auxiliary output 2 right output channel differential negative output channel analog output axo1_r/n o 4 auxiliary output 1 right output channel differential negative output channel analog output axo1_l/p o 5 auxiliary output 1 left output channel differential positive output channel analog output axil/jd1 i 8 auxiliary left channel input / jack detection pin 1 analog input jd threshold: vil = 0.4v vih = 1.5v axir/jd2 i 9 auxiliary right channel input / jack detection pin 2 analog input jd threshold: vil = 0.4v vih = 1.5v monoin_n i 10 mono negative differential input analog input monoin_p i 11 mono positive differential input analog input mic1p i 12 positive differential input for mic1 analog input mic1n i 13 negative differential input for mic1 analog input mic2n i 14 negative differential input for mic2 analog input mic2p i 15 positive differential input for mic2 analog input monoout_p o 19 positive channel output for mono amp analog output monoout_n o 20 negative channel output for mono amp analog output hpo_r o 28 right channel for headphone output analog output hpo_l o 29 left channel for headphone output analog output spo_rp o 43 right positive speaker output analog output spo_rn o 45 right negative speaker output analog output spo_ln o 46 left negative speaker output analog output spo_lp o 48 left positive speaker output analog output total: 20 pins free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 7 rev. 0.9 6.3. filter/reference table 3. filter/reference name type pin description characteristic definition micbias2 o 6 bias voltage output for mic2 programmable analog dc output micbias1 o 7 bias voltage output for mic1 programmable analog dc output vref o 17 internal reference voltage 4.7uf capacitor to analog ground cdepop o 21 headphone de-pop capacitor 1.0u f capacitor to analog ground cpref - 22 0v reference voltage analog ground cpp - 24 charge pump bucket capacitor 2.2uf capacitor to cbn cpn - 26 charge pump bucket capacitor 2.2uf capacitor to cbp total: 7 pins 6.4. power/ground table 4. power/ground name type pin description characteristic definition spkgnd p 1 speaker ground avdd p 16 analog power 2.3v~3.6v agnd p 18 analog ground cpvdd p 23 charge pump power 2.3v~3.6v cpgnd p 25 charge pump ground cpvee p 27 charge pump negative voltage output 2.2uf capacitor to analog ground dcvdd p 39 digital core power 1.71v~3.6v dbvdd p 40 digital i/o power 1.71v~3.6v dgnd p 41 digital ground spkvdd1 p 44 speaker amp power 3.0v~5.0v spkvdd2 p 47 speaker amp power 3.0v~5.0v total: 11 pins free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 8 rev. 0.9 7. function description 7.1. power there are different power types in ALC5631Q. dbvdd is for digital i/o power, dcvdd is for digital core power, avdd is for analog po wer, cpvdd is for charge pump power and spkvdd is for speaker amplifier power. the power supplier limit condition are dbvdd dcvdd and spkvdd RR avdd = cpvdd , avdd dcvdd, and for the best performanc e, our design setting is show on below. R table 5. 3 power supply for best performance power dbvdd dcvdd avdd cpvdd spkvdd setting 3.3v 3.3v 3.3v 3.3v 4.2v table 6. 3 power supply for leakage current supply condition dbvdd dcvdd avdd cp vdd spkvdd total leakage current 1 supplied supplied supplied supplied supplied < 11ua 2 n/a n/a n/a n/a supplied < 11ua *for other supply conditions, the total leakage current will large than 11ua. we don?t recommend these supply conditions other than table 6 listed. 7.2. reset there are 3 types of reset operation: hardware re set, power on reset (por) and register reset. table 7. reset operation reset type trigger condition codec response h/w reset control /rst pin from high to low reset all hardware logic and all registers to default values. por monitor digital power supply voltage reach v por reset all hardware logic and all registers to default values. register reset write reg-00h reset all registers to default values except some specify control registers and logic. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 9 rev. 0.9 7.2.1. power-on reset (por) when powered on, dcvdd passes through the v por band of the ALC5631Q (v por_on ~v por_off ). a power on reset (por) will generate an internal reset signal (por rese t ?low?) to reset the whole chip. table 8. power-on reset voltage symbol min typical max unit v por_on 1.0 - 1.6 v v por_off - 1.3 - v note: v por_off must be below v por_on . 7.2.2. h/w reset when control /rst pin from high to low, it will reset all hardware logic and reset the registers to default values. the /rst is a schmitt trigger input. the v il is equal to 0.35*dbvdd and v ih is equal to 0.65*dbvdd. 7.2.3. software reset when reg-00h is wrote, all registers become to default value. 7.3. clocking the system clock of ALC5631Q can be selected fr om mclk or pll. this means mclk is always provided externally, and the driver should arrange the clock of each block and setup each divider. the system clock of ALC5631Q can be selected from mclk or plls. mclk is always provided externally while the reference clock of plls can be selected from mclk, bclk. the driver should arrange the clock of each bl ock and setup each divider. the main i2s_sysclk=256*fs(main) pr ovides clocks into stereo dac/ adc that can be selected from mclk or pll. refer to sel_sysclk1 sel_pll_sour1 figure 4. audio sysclk free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 10 rev. 0.9 7.3.1. phase-locked loop a phase-locked loop (pll) is used to provide a flexible input clock from 2.048mhz to 40mhz. the source of the pll can be set to mclk or bclk by setting register. the driver can set up the pll to output a frequency to match the re quirement of main i2s sysclk. the pll transmit formula is: f out = (mclk * (n+2)) / ((m+2) * (k+2)) {typical k=2} table 9. clock setting table for 48k (unit: mhz) mclk n m f vco k f out 13 66 7 98.222 2 24.555 3.6864 78 1 98.304 2 24.576 2.048 94 0 98.304 2 24.576 4.096 70 1 98.304 2 24.576 12 80 8 98.4 2 24.6 15.36 81 11 98.068 2 24.517 16 78 11 98.462 2 24.615 19.2 80 14 98.4 2 24.6 19.68 78 14 98.4 2 24.6 table 10. clock setting table for 44.1k (unit: mhz) mclk n m f vco k f out 13 68 8 91 2 22.75 3.6864 72 1 90.931 2 22.733 2.048 86 0 90.112 2 22.528 4.096 64 1 90.112 2 22.528 12 66 7 90.667 2 22.667 15.36 63 9 90.764 2 22.691 16 66 10 90.667 2 22.667 19.2 64 12 90.514 2 22.629 19.68 67 13 90.528 2 22.632 after a por reset, pll related registers are reset to default values, however, they are not reset to default values after a so ft-reset (write reg-00). 7.3.2. i 2 c and stereo i 2 s the ALC5631Q supports i 2 c for the digital control interface, and has i 2 s/pcm for the digital data interface. the i 2 s/pcm audio digital interface is used to input data to a stereo dac or output data from a stereo adc. the i 2 s/pcm audio digital interface can be configured to master mode or slave mode. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 11 rev. 0.9 master mode in master mode bclk and lrck are configured as output. when mclk is used as i2s sysclk source, pll can be disabled and sel_sysc lk1=00?b, . when pll output is us ed as i2s sysclk source pll enabled and sel_sysclk1=01?b, mclk is suggested to provide frequency from 2.048mhz to 40mhz., and pll should be configured to support .256 or 512*fs. the driver should set each divider (reg42 and reg38) to arrange the clock distributi on. refer to section tbd for details. slave mode in slave mode bclk and lrck are configured as input. the_sysclk can be input from mclk by provide the bclk synchronized clock externally. and th e driver should set each divider to arrange the clock distribution. refer to section tbd for details. 7.4. digital data interface 7.4.1. stereo i 2 s/pcm interface the stereo i 2 s/pcm interface can be configured as master mode or slave m ode. four audio data formats are supported: ? pcm mode ? left justified mode ? i 2 s mode figure 5. pcm mono data mode a format (bclk polarity=0) free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 12 rev. 0.9 figure 6. pcm mono data mode a format (bclk polarity=1) figure 7. pcm mono data mode b format (bclk polarity=0) figure 8. pcm stereo data mode a format (bclk polarity=0) free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 13 rev. 0.9 figure 9. pcm stereo data mode b format (bclk polarity=0) figure 10. i 2 s data format (bclk polarity=0) figure 11. left-justified data format (bclk polarity=0) free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 14 rev. 0.9 7.5. audio data path the ALC5631Q provides 2-channel stereo audio dac for playback and 2-channel adc for recording. 7.5.1. stereo adc the stereo adc is a high performance adc. the full scale input of adc is 1vrms at avdd is 3.3v. in order to save power, the left and right adc can be powered down separately by setting pow_adc_l and pow_adc_r . the volume control of the stereo adc is also can set by vol_adc_l and vol_adc_r . 7.5.2. stereo dac the stereo dac is a high performance dac. the sampli ng rate can be configured by setting the stereo i 2 s clock divider(reg-38). the volume control of th e stereo dac is set by vol_dac_l and vol_dac_r. pow_dac_l can be enabled left channel of dac whilt pow_dac_r can be enabled right channel of dac, 7.5.3. mixers there are five digital/analog mixers in ALC5631Q. ? output mixer - outmixl/r the stereo analog mixer can do mixing for dac output and analog input. the mixer output is mainly for headphone output. each input path has it?s mu te function to the mixer block in reg-1a and reg-1c. pow_outmix and pow_outmixr can be used to power on/off outmixl/r ? speaker mixer ? spkmixl/r the stereo analog mixer can do mixing for outmix output and analog input. the mixer output is for speaker output. each input path has it?s mute fu nction to the mixer block in reg-28. pow_spkmixl and pow_spkmixr can be used to power on/off spkmixl/r. ? aux_out mixer ? axo1/2mix the stereo analog mixer can do mixing for analog input and dac output. the mixer output is for line-out output for drive external am plifier. each input path has individual mute function to the mixer block in reg-1e. pow_axo1 and pow_axo2 can be used to power on/off axomix. ? record mixer ? recmixl/r the stereo analog mixer can do mixing for analog input and outmix output. the mixer output is for adc input. each input path has it?s mute func tion to the mixer block in reg-14. pow_recmixl and pow_recmixr can be used to power on/off recmixl/r ? dmic mixer 3 ? dmicmix the stereo digital mixer can do mixing for di gital microphone input and adc output. the mixer output is digital data and send to i2s output. e n_dmic can be used to power on/off dmicmix. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 15 rev. 0.9 # each mixer has it?s power down control by regist er. and can power down single channel of stereo mixer independent. it can easy to control th e power management to achieve enhance power saving. 7.6. analog audio input path the ALC5631Q supports four analog audio input ports: ? mic1p/n the microphone input port-1 can configure as mono differential input or m ono single-ended input by reg-0e[15]. the microphone input port has it? s microphone bias and microphone boost. high performance microphone bias can improve the recording performa nce and increase the microphone sensitivity. multi-steps microphone boost gain set by sel_bst1 can easy to use for microphone application. pow_mic1 can be used to power down the mic1 boost while   
   ? ?  ?  ? can be used to power down the microphone bias of mic1. ? mic2p/n the microphone input port-2 can configure as mono differential input or m ono single-ended input by reg-0e[7].. the microphone input port has it?s microphone bias and microphone boost. high performance microphone bias can improve the recording performa nce and increase the microphone sensitivity. multi-steps microphone boost gain set by sel_bst2 can easy to use for microphone application. pow_mic2 can be used to power down the mic2 boost while   
   ? ?  ?  ? can be used to power down the microphone bias of mic2. ? axil/r the input port is a stereo single-ended input. it has input volume for tuning. the volume range is from +12db to -34.5db and with 1.5db/step. se t by reg-0a[12:8] and reg-0a[4:0]. pow_axi_vol_l and pow_axi_vol_r can be used to power down axil/r volume control. ? monoin_p/n this input port can configure as mono differentia l input or mono single-ende d input by en_rx_df.. the input port can direct bypass to mono amp output or speaker amp output and don?t need through the internal mixer. it can keep the original pe rformance and minimize the power consumption of inter-chip. the differential input mode can eff ective to reduce the common-mode noise produced by external device and external pcb trace. it also has input volume control and with +12db to -34.5db, free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 16 rev. 0.9 1.5db/step volume range controlled by reg-26[12:8] and reg-26[4:0].. 7.7. analog audio output path the ALC5631Q supports four type output paths: ? spo_l/r_p/n the speaker output of ALC5631Q is a stereo btl out put with class-d type amplifier. the power of speaker amplifier is an indivi dual power pin and higher than avd d. so the input and output of speaker amplifier has a gain ratio to enlarge or reduce the income analog signal. the gain ratio setting can be controlled by auto-mode or manual-mode(en_s pk_auto_ratio). the input source of the speaker output port can select from analog input , spo lmix or dac output setting reg-2c[15:14]. the front stage of speaker output has volume control and the volume range is from +12db to -46.5db with 1.5db/step controlled by reg- 02[13:8] and reg-02[5:0]. pow_spo_vol_l and pow_spo_vol_r can be used to power on/off spkvoll and spkvolr and pow_clsd can be used to power on/off spo_l/r_p/n ? hpo_l/r the headphone output of ALC5631Q is a stereo output and with cap-free type headphone amplifier. it didn?t need to connect external cap. and can c onnect to earphone device directly. the headphone output?s source can select from out put mixer (outmix) or dac dir ect output by reg-2c[2:3].. the front stage of headphone output has volume control and the volume range is from 0db to -46.5db with 1.5db/step. by reg-04[ 12:8] and reg-04[4:0] pow_l_hp and pow_r_hp can be used to power on/o ff headphone amplifier while pow_hpo_vol_l and pow_hpo_vol_r can be used to power on/off hea dphone volume control. in addition, pow_cp_hp can be used to power on/off charge pum p circuit for headphone amplifier. ? monoout_p/n the mono output is a differential out put and with class-ab type amp lifier. the mono output?s source can select from analog input or mono mixer (m onomix) by setting reg-2c[7:6]. the mono mixer (monomix) is mixing channel left and channel ri ght from output mixer (outmix) by setting reg-2a[11:10]. the front stage of mono output has volume contro l (outvoll/r) and the volume range is from 0db to -46.5db with 1.5db/s tep by reg-06[12:8] and reg-06[4:0]... . ? axo1/2_l/r/p/n the output type is line output. the output can conf igure as differential or si ngle-ended. so there are two types for this output: one stereo differential ou tput or two stereo singl e-ended outputs. the input free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 17 rev. 0.9 can select from analog input with 0db to - 21db, 3db/step volume by reg-1e[14:12][10:8] and reg-20[14:12][10:8] or volume control (out voll/r) with 0db to -46.5db, 1.5db/step by reg-06[12:8] and reg-06[4:0]... 7.8. alc function the automatic level control (alc) function is dynamically adjusts th e input signal by alc block to let the output signal to achieve the ta rget level. the ALC5631Q supports playback alc for dac and record alc for adc. i2c interface pre-gain digital volume post-gain dac alc -95.625 ~ 0db 0.375/step 0 ~ 28.5db 1.5/step 0 ~ 28.5db 1.5/step 1. limiter level 2. attack / release time 3. zero data analog pre-boost pre-gain digital volume i2s interface alc -95.625 ~ 0db 0.375/step 0 ~ 28.5db 1.5/step 1. limiter level 2. attack / release time 3. noise gate adc figure 12. auto level control block diagram playback mode: for dac playback mode, when the input signal exceeds target threshold (sel_alc_thmax), the signal will decrease ?alc digital volume? (0.375db /step at every zero-crossing) until drop to target level then keep the digital volume. when input signal is below the ta rget threshold, the signal wi ll step-up ?alc digital volume? (0.375db/step every zero -crossing) until return to original level. if want to return to the target level, need to set the pre-gain to achieve. fine tune parameters: ? limiter threshold: 0 ~ -46.5db, 1.5db/step by sel_alc_thmax ? attack rate: t=(4*2^n)/sample rate , n=reg0x64[12:8] : sel_alc_atk ? recovery rate: t=(4*2^n)/sample rate, n=reg0x64[4:0] : sel_rc_rate free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 18 rev. 0.9 alc gain 0db input signal output signal target level attack rate recovery rate figure 13. alc for playback mode recording mode: for adc recording mode, when the input signal exceeds target threshold (sel_alc_thmax), the signal will decrease ?alc digital volume? (0.375db /step at every zero-crossing) until drop to target level then keep the digital volume. when input signal is below the ta rget threshold, the signal wi ll step-up ?alc digital volume? (0.375db/step every zero -crossing) until return to original level. if want to return to the target level, need to set the pre-gain to achieve. when input signal is below noise gate (sel_alc_noise_t h), the input signal will be reduced and to suppress the background noise. the reducing level can be set by noise_gate_boost. and when input signal is above noise gate, the input signal will be boosted to target level. fine tune parameters: ? limiter threshold: 0 ~ -46.5db, 1.5db/step by sel_alc_thmax free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 19 rev. 0.9 ? attack rate: t=(4*2^n)/sample rate , n=reg0x64[12:8] : sel_alc_atk ? recovery rate: t=(4*2^n)/sample rate, n=reg0x64[12:8] : sel_rc_rate ? noise gate threshold: -36 ~ - 82.5db, 1.5db/step by sel_alc_noise_th ? reducing noise level: 0 ~ 45db, 3db/step by noise_gate_boost alc gain 0db input signal output signal target level attack rate recovery rate noise gate attack rate recovery rate noise gate target level noise reduction figure 14. alc for recording mode free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 20 rev. 0.9 7.9. speaker amplifier ratio gain owing to speaker power (spkvdd) and analog pow er (avdd) is different power domain. and normally the speaker power is higher than analog power . so the audio input signal is need to be boost or reduce by a gain and then output from speaker amplifie r. when spkvdd is dropping, the gain need to be reduced to prevent the signal is c lipped. and when spkvdd is rising, the gain need to be boosted to prevent the signal is to small. en_spk_auto_ratio is used to enable speaker amplifier auto gain ratio. table 11. ration gain table for spkvdd avdd = 2.5v ac ratio gain setting gain ( db ) 5.86 v 2.34 111'b 7.400227 4.99 v 2.00 110'b 5.999729 4.20 v 1.68 101'b 4.506186 3.90 v 1.56 100'b 3.862492 3.60 v 1.44 011'b 3.16725 3.18 v 1.27 010'b 2.1 2.74 v 1.10 001'b 0.8 spkvdd 2.50 v 1.00 000'b 0 avdd = 2.5v spkvdd = 4.2v vmid =1.25v vmid = 2.1v spkvdd = 3.6v vmid = 1.8v figure 15. ratio gain for spkvdd and avdd free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 21 rev. 0.9 7.10. hardware sound processing the sound effect block is composed of pseudo ster eo, spatial 3d, and equalizer blocks. the pseudo stereo block is used to convert a mono source into virtualized stereo output. the spatial 3d block is a surround sound generator with adjustab le amplitude (gain) and surroun d depth (ratio). the equalizer block can be used to compensate fo r speaker response, or to make e nvironment sound effects, e.g., ?pub?, ?live?, ?rock?,? etc.. 7.10.1. equalizer block the equalizer block cascades 6 bands of equalizer to compensate for speaker response and to emulate environment sound. the 6 bands equalizer are include tw o high pass filter, three ba nd pass filter and one low pass filter. one high pass filter cascaded in the fr ont end is used to drop lo w frequency tone, the tone has a large amplitude and may damage a mini speaker. the high pass filter can also be used to adjust treble strength with gain control. one low pass filter with gain control can adjust the bass strength. three bands of bi-quad band pass filters are used to emulate environment sounds. 7.10.2. pseudo stereo and spatial 3d sound there are two spatial effects in post-processing; the ps eudo-stereo effect + spatial effect, and the stereo expansion effect. the pseudo-stereo effect + spatial effect convert s a mono signal to a stereo signal by changing the phase and amplitude of the original signal followed by enhancing the spatial effect. the stereo expansion effect enhances the spatia l effect when the input signal is stereo. 7.10.3. wind noise reduction filter the wind filter is implemented by a high pass filter equalizer. the wind filter is mainly for adc recording used. the bandwidth of wind filter is program mable and varies with sample rate. the filter is used to remove dc offset at normal conditi on, and wind noise reduction at application mode. table 12. sample rate with bandwidth for wind filter sampling rate ( sel_adhpf_fs_type ) = 48khz sel_adc_wf 00?b 01?b 10?b 000 130 hz 260 hz 440 hz 001 170 hz 330 hz 556 hz 010 171 hz 330 hz 556 hz 011 254 hz 448 hz 770 hz 100 330 hz 640 hz 1124 hz 101 420 hz 730 hz 1200 hz 110 509 hz 770 hz 2000 hz 111 620 hz 1260 hz 2155 hz free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 22 rev. 0.9 7.11. i 2 c control interface i 2 c is a 2-wire (scl/sda) half-duplex serial comm unication interface, supporting only slave mode. scl is used for clock and sda is for data. scl clock supports up to 400khz rate and sda data is a open drain structure. the input has built- in spike filter and can remove le ss than 50ns spike at scl and sda. 7.11.1. address setting table 13. address setting (0x34h) (msb) bit (lsb) 0 0 1 1 0 1 0 r/w 7.11.2. complete data transfer data transfer over i 2 c control interface figure 16. data transfer over i 2 c control interface write word protocol table 1. write word protocol read word protocol table 2. read word protocol free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 23 rev. 0.9 s: start condition a: 0 for ack, 1 for nack slave address: 7-bit device address data byte: 16-bit mixer data wr: 0 for write command ? : master-to-slave rd: 1 for read command ? : slave-to-master command code: 8-bit register address 7.11.3. odd-addressed register access the ALC5631Q will return ?0000h? when odd-addr essed and unimplemented registers are read. 7.12. gpio, interrupt and jack detection the ALC5631Q supports one gpio. the gpio can be configured as input/out put by reg4c[2]. when gpio is configured as input, the status will be i ndicated in reg4a[2]. when gpio is configured as output, reg4c[1] is used to drive gpio to high or low. the gpio is also can as irq output and triggered by trigger sources. the trigger sources can from over-current status, over-temperature st atus and jack detection. each of th ese is trigged and the gpio will output a flag as interrupt signal. there are three pins can as jack detect pins, gpio , jd1 (share with axil) and jd2 (share with axir). the jack detect function is use to turn-on or turn-off output port. when jack detect pin ha s been trigged, the selected output ports will be turn-on or turn-off. when gpio is as irq function then will not as jack detect pin. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 24 rev. 0.9 over-current status over-temperature status jack detection 1 status jack detection 2 status gpio = jd input gpio = irq output high trigger on and low trigger off for hpol/r reg5a[15:14] reg5a[10] high trigger on and low trigger off for spolp/n low trigger on and high trigger off for spolp/n reg5a[8] reg5a[6] high trigger on and low trigger off for monop/n low trigger on and high trigger off for monop/n reg5a[4] high trigger on and low trigger off for loutp/n low trigger on and high trigger off for loutp/n reg5a[2] high trigger on and low trigger off for routp/n low trigger on and high trigger off for routp/n reg5a[0] reg48[15] reg48[14] reg48[13] low trigger on and high trigger off for hpol/r high trigger on and low trigger off for sporp/n low trigger on and high trigger off for sporp/n figure 17. irq/jack detection function block free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 25 rev. 0.9 7.13. power management ALC5631Q detailed power management control regi sters are supported in reg3a, 3b, 3c, 3e. each particular block will only be active when i ndividual bits of reg3a are set to enable. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 26 rev. 0. 5 8. registers list accessing odd numbered registers, or readi ng unimplemented registers, will return a 0. 8.1. r eg -00h: reset default: 0001?h table 14. reg-00h: reset port name bits read/write reset state description reserved 15:4 - 0?h reserved reg-00_b3 3 r 0?h internal used reg-00_b2 2 r 0?h internal used reg-00_b1 1 r 0?h internal used reg-00_b0 0 r 1?h internal used note: writes to this register will reset all registers to thei r default values except pll related register. the written data will be ignored. 8.2. reg - 02h: speaker output control default: 8888?h table 15. reg-02h: speaker output control port name bits read/write reset state description mu_spo_l 15 r/w 1?h mute control for spolp/ln 0?b: un-mute 1?b: mute sel_spkvoll_in 14 r/w 0?h speaker left channel volume input select 0?b: vmid (no input) 1?b: spkmixl vol_spo_l 13:8 r/w 8?h speaker left channel volume control (spkvoll) 00?h: +12db ~ 08?h: 0db ~ 27?h: -46.5db, with 1.5db/step mu_spo_r 7 r/w 1?h mute control for spo_rp/rn 0?b: un-mute 1?b: mute sel_spkvolr_in 6 r/w 0?h speaker right channel volume input select 0?b: vmid (no input) 1?b: spkmixr free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 27 rev. 0.9 port name bits read/write reset state description vol_spo_r 5:0 r/w 8?h speaker right channel volume control ( spkvolr ) 00?h: +12db ~ 08?h: 0db ~ 27?h: -46.5db, with 1.5db/step 8.3. r eg -04h: headphone output control default: 8080?h table 16. reg-04h: headphone output control name bits read/write reset state description mu_hpo_l 15 r/w 1?h mute control for hpol 0?b: un-mute 1?b: mute sel_hpovoll_in 14 r/w 0?h headphone left channel volume input select 0?b: vmid (no input) 1?b: outmixl reserved 13 - 0?h reserved vol_hpo_l 12:8 r/w 0?h headphone left channel volume control (hpovoll) 00?h: 0db ~ 1f?h: -46.5db, with 1.5db/step mu_hpo_r 7 r/w 1?h mute control for hpor 0?b: un-mute 1?b: mute sel_hpovolr_in 6 r/w 0?h headphone right channel volume input select 0?b: vmid (no input) 1?b: outmixr reserved 5 - 0?h reserved vol_hpo_r 4:0 r/w 0?h headphone right channel volume control (hpovolr) 00?h: 0db ~ 1f?h: -46.5db, with 1.5db/step free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 28 rev. 0.9 8.4. reg-06h: output control for axo1/axo2/monoout default: a080?h table 17. reg-06h: output control for axo1/axo2/monoout name bits read/write reset state description mu_axo1 15 r/w 1?h mute control for axo1 0?b: un-mute 1?b: mute sel_outvoll_in 14 r/w 0?h left output volume (outvoll) input select 0?b: vmid (no input) 1?b: outmixl mu_mono 13 r/w 1?h mute control for monoout 0?b: un-mute 1?b: mute vol_o_l 12:8 r/w 0?h left output volume control (outvoll) 00?h: 0db ~ 1f?h: -46.5db, with 1.5db/step mu_axo2 7 r/w 1?h mute control for axo2 0?b: un-mute 1?b: mute sel_outvolr_in 6 r/w 0?h right output volume (outvolr) input select 0?b: vmid (no input) 1?b: outmixl reserved 5 - 0?h reserved vol_o_r 4:0 r/w 0?h right output volume control (outvolr) 00?h: 0db ~ 1f?h: -46.5db, with 1.5db/step free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 29 rev. 0.9 8.5. r eg -0ah: aux input volume control default: 0808?h table 18. reg-0ah: aux input volume control name bits read/write reset state description reserved 15:13 - 0?h reserved vol_axi_l 12:8 r/w 8?h aux left input volume control 00?h: 12db ~ 08?h: 0db ~ 1f?h: -34.5db, with 1.5db/step reserved 7:5 - 0?h reserved vol_axi_r 4:0 r/w 8?h aux right input volume control 00?h: 12db ~ 08?h: 0db ~ 1f?h: -34.5db, with 1.5db/step 8.6. reg-0ch: stereo dac control 1 default: 0000?h table 19. reg-0ch: stereo dac control 1 name bits read/write reset state description mu_dac_l 15 r/w 0?h digital mute for left dac 0?b: un-mute 1?b: mute reserved 14:8 r 0?h reserved mu_dac_r 7 r/w 0?h digital mute for right dac 0?b: un-mute 1?b: mute sel_dac_pre_bst 6:0 r/w 0?h digital pre-boost gain 00?h= 0db 01?h= 0.375db 02?h= 0.75db 03?h= 1.125db ~ 4c?h= 28.5db, with 0.375db/step others: reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 30 rev. 0.9 8.7. reg-0eh: microphone input control default: 0000?h table 20. reg-0eh: microphone input control name bits read/write reset state description en_mic1_df 15 r/w 0?h mic1 input mode control 0?b: single-ended input (input is from mic1n) 1?b: differential input reserved 14:8 - 0?h reserved en_mic2_df 7 r/w 0?h mic2 input mode control 0?b: single-ended input (input is from mic2n) 1?b: differential input reserved 6:0 - 0?h reserved 8.8. r eg -10h: stereo dac control 2 default: 0000?h table 21. reg-10h: stereo dac control 2 name bits read/write reset state description vol_dac_l 15:8 r/w 0?h stereo dac left channel digital volume 00?h: 0db ~ ff?h: -95.625db, with 0.375db/step vol_dac_r 7:0 r/w 0?h stereo dac right channel digital volume 00?h: 0db ~ ff?h: -95.625db, with 0.375db/step 8.9. reg-12h: stereo adc control 1 default: 0000?h table 22. reg-12h: stereo adc control 1 name bits read/write reset state description mu_adc_l 15 r/w 0?h digital mute for left adc 0?b: un-mute 1?b: mute reserved 14:8 - 0?h reserved mu_adc_r 7 r/w 0?h digital mute for right adc 0?b: un-mute 1?b: mute reserved 6:5 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 31 rev. 0.9 name bits read/write reset state description sel_adc_pre_bst 4:0 r/w 0?h digital pre-boost gain 00?h= 0db 01?h= 1.5db 02?h= 3db 03?h= 4.5db ??????.. 13?h= 28.5db, with 1.5db/step others: reserved 8.10. reg-14h: adc recording mixer control default: f0f0?h table 23. reg-14h: adc recording mixer control name bits read/write reset state description mu_outmixl_to_rec mixl 15 r/w 1?h left output mixer (outmixl) to left rec mixer (recmixl) 0?b: un-mute 1?b: mute mu_bst1_to_recmixl 14 r/w 1?h mic1 to left rec mixer (recmixl) 0?b: un-mute 1?b: mute mu_axilvol_to_recm ixl 13 r/w 1?h axil to left rec mixer (recmixl) 0?b: un-mute 1?b: mute mu_rx_to_recmixl 12 r/w 1?h monoin to left rec mixer (recmixl) 0?b: un-mute 1?b: mute reserved 11:8 - 0?h reserved mu_outmixr_to_rec mixr 7 r/w 1?h right output mixer (outmixr) to right rec mixer (recmixr) 0?b: un-mute 1?b: mute mu_bst2_to_recmixr 6 r/w 1?h mic2 to right rec mixer (recmixr) 0?b: un-mute 1?b: mute mu_axirvol_to_recm ixr 5 r/w 1?h axir to right rec mixer (recmixr) 0?b: un-mute 1?b:mute mu_rx_to_recmixr 4 r/w 1?h monoin to right rec mixer (recmixr) 0?b: un-mute 1?b: mute reserved 3:0 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 32 rev. 0.9 8.11. reg-16h: stereo adc control 2 default: 0000?h table 24. reg-16h: stereo adc control 2 name bits read/write reset state description vol_adc_l 15:8 r/w 0?h stereo adc left channel digital volume 00?h: 0db ~ ff?h: -95.625db, with 0.375db/step vol_adc_r 7:0 r/w 0?h stereo adc right channel digital volume 00?h: 0db ~ ff?h: -95.625db, with 0.375db/step 8.12. reg-1ah: left output mixer (outmixl) control default: ffc0?h table 25. reg-1ah: left output mixer control name bits read/write reset state description mu_recmixl_to_outmi xl 15 r/w 1?h left rec mixer (rec mixl) to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_recmixr_to_outmi xl 14 r/w 1?h right rec mixer (recmixr) to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_dacl_to_outmixl 13 r/w 1?h left dac output to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_bst1_to_outmixl 12 r/w 1?h mic1 to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_bst2_to_outmixl 11 r/w 1?h mic2 to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_rxn_to_outmixl 10 r/w 1?h monoin negative input to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_axilvol_to_outmix l 9 r/w 1?h axil to left output mixer (outmixl) 0?b: un-mute 1?b: mute mu_axirvol_to_outmix l 8 r/w 1?h axir to left output mixer (outmixl) 0?b: un-mute 1?b: mute free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 33 rev. 0.9 name bits read/write reset state description reserved 7:0 r/w c0?h reserved, don?t change it 8.13. reg-1ch: right output mixer (outmixr) mixer control default: ffc0?h table 26. reg-1ch: right output mixer control name bits read/write reset state description mu_recmixl_to_outmixr 15 r/w 1?h left rec mixer (recmixl) to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_recmixr_to_outmixr 14 r/w 1?h right rec mixer (recmixr) to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_dacr_to_outmixr 13 r/w 1?h right dac output to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_bst1_to_outmixr 12 r/w 1?h mic1 to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_bst2_to_outmixr 11 r/w 1?h mic2 to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_rxp_to_outmixr 10 r/w 1?h monoin positive input to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_axilvol_to_outmixr 9 r/w 1?h axil to right output mixer (outmixr) 0?b: un-mute 1?b: mute mu_axirvol_to_outmixr 8 r/w 1?h axir to right output mixer (outmixr) 0?b: un-mute 1?b: mute reserved 7:0 r/w c0?h reserved, don?t change it 8.14. reg-1eh: axo1mix control default: 88c0?h free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 34 rev. 0.9 table 27. reg-1eh: axo1 mixer control name bits read/write reset state description mu_bst1pn_to_axo1 mix 15 r/w 1?h mic1 to axo1 mixer (fully differential path) 0?b: un-mute 1?b: mute vol_bst1pn_to_axo1 mix 14:12 r/w 0?h volume control for mic1 to axo1 mixer 000?b: 0db 001?b: -3db ~ 111?b: -21db, with 3db/step mu_bst2pn_to_axo1 mix 11 r/w 1?h mic2 to axo1 mixer (fully differential path) 0?b: un-mute 1?b: mute vol_bst2pn_to_axo1 mix 10:8 r/w 0?h volume control for mic2 to axo1 mixer 000?b: 0db 001?b: -3db ~ 111?b: -21db, with 3db/step mu_outvoll_to_axo1 mix 7 r/w 1?h left output volume (outvoll) to axo1 mixer 0?b: un-mute 1?b: mute mu_outvolr_to_axo1 mix 6 r/w 1?h right output volume (outvolr) to axo1mixer 0?b: un-mute 1?b: mute sel_axo1_mode 5 r/w 0?h axo1 output mode control n 0?b: differential 1?b: single-end reserved 4:0 - 0?h reserved n axo1 output mode control: diferential mode sel_axo1_mode=0?b single-end mode sel_axo1_mode=1?b source axo1_p axo1_n axo1_l axo1_r outvoll mu_outvoll_to_axo1mix=0?b outvoll inverse(outvoll) outvoll outvolr outvolr mu_outvolr_to_axo1mix=0?b outvolr inverse(outvolr) outvolr outvoll bst1 mu_bst1pn_to_axo1mix=0?b bst1p bst1n bst1p bst1p bst2 mu_bst2pn_to_axo1mix=0?b bst2p bst2n bst2p bst2p free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 35 rev. 0.9 8.15. reg-20h: axo2mix control default: 88c0?h table 28. reg-20h: axo2 mixer control name bits read/write reset state description mu_bst1pn_to_axo2 mix 15 r/w 1?h mic1 to axo2 mixer (fully differential path) 0?b: un-mute 1?b: mute vol_bst1pn_to_axo2 mix 14:12 r/w 0?h volume control for mic1 to axo2 mixer 000?b: 0db 001?b: -3db ~ 111?b: -21db, with 3db/step mu_bst2pn_to_axo2 mix 11 r/w 1?h mic2 to axo2 mixer (fully differential path) 0?b: un-mute 1?b: mute vol_bst2pn_to_axo2 mix 10:8 r/w 0?h volume control for mic2 to axo2 mixer 000?b: 0db 001?b: -3db ~ 111?b: -21db, with 3db/step mu_outvoll_to_axo2 mix 7 r/w 1?h left output volume (outvoll) to axo2 mixer 0?b: un-mute 1?b: mute mu_outvolr_to_axo2 mix 6 r/w 1?h right output volume (outvolr) to axo2 mixer 0?b: un-mute 1?b: mute sel_axo2_mode 5 r/w 0?h axo2 output mode control n 0?b: differential 1?b: single-end reserved 4:0 - 0?h reserved n axo2 output mode control: diferential mode sel_axo2_mode=0?b single-end mode sel_axo2_mode=1?b source axo2_p axo2_n axo2_l axo2_r outvoll mu_outvoll_to_axo2mix=0?b outvoll inverse(outvoll) outvoll outvolr outvolr mu_outvolr_to_axo2mix=0?b outvolr inverse(outvolr) outvolr outvoll bst1 mu_bst1pn_to_axo2mix=0?b bst1p bst1n bst1p bst1p bst2 mu_bst2pn_to_axo2mix=0?b bst2p bst2n bst2p bst2p free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 36 rev. 0.9 8.16. reg-22h: microphone input control default: 0000?h table 29. reg-22h: microphone input control name bits read/write reset state description sel_bst1 15:12 r/w 0?h mic1 input boost gain control 0000?b: bypass 0001?b: +20db 0010?b: +24db 0011?b: +30db 0100?b: +35db 0101?b: +40db 0110?b: +44db 0111?b: +50db 1000?b: +52db others : reserved sel_bst2 11:8 r/w 0?h mic2 input boost gain control 0000?b: bypass 0001?b: +20db 0010?b: +24db 0011?b: +30db 0100?b: +35db 0101?b: +40db 0110?b: +44db 0111?b: +50db 1000?b: +52db others : reserved sel_micbias1 7 r/w 0?h micbias1 output voltage control 0?b: 0.9 * avdd 1?b: 0.75 * avdd pow_mic_ovcd1 6 r/w 0?h micbias1 short current detector control 0?b: disable 1?b: enable sel_mic_ovcd_th1 5:4 r/w 0?h micbias1 short current detector threshold 00?b: 600ua 01?b: 1500ua 1x?b: 2000ua note: tolerance is 200ua free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 37 rev. 0.9 name bits read/write reset state description sel_micbias2 3 r/w 0?h micbias2 output voltage control 0?b: 0.9 * avdd 1?b: 0.75 * avdd pow_mic_ovcd2 2 r/w 0?h micbias2 short current detector control 0?b: disable 1?b: enable sel_mic_ovcd_th2 1:0 r/w 0?h micbias2 short current detector threshold 00?b: 600ua 01?b: 1500ua 1x?b: 2000ua note: tolerance is 200ua 8.17. reg-24h: digital microphone control default: 3000?h table 30. reg-24h: digital microphone control name bits read/write reset state description en_dmic 15 r/w 0?h enable dmic in terface(adc digital mux selection) 0?b: disable (adc to adc digital filter) 1?b: enable (dmic to adc digital filter) reserved 14 - 0?h reserved mu_dmic_l 13 r/w 1?h dmic left channel mute control 0?b: un-mute 1?b: mute mu_dmic_r 12 r/w 1?h dmic right channel mute control 0?b: un-mute 1?b: mute reserved 11:10 - 0?h reserved sel_dmic_l_edge 9 r/w 0?h dmic left channel source control 0?b: latch from falling edge 1?b: latch from rising edge sel_dmic_r_edge 8 r/w 0?h dmic adc right channel source control 0?b: latch from falling edge 1?b: latch from rising edge reserved 7:6 - 0?h reserved sel_dmic_clk 5:4 r/w 0?h dmic clock rate control 00?b: 128*fs 01?b: 64*fs 1x?b: 32*fs reserved 3:0 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 38 rev. 0.9 8.18. reg-26h: monoin input volume default: 8808?h table 31. reg-26h: monoin input volume name bits read/write reset state description en_rx_df 15 r/w 1?h monoin input mode control 0?b: single-ended input 1?b: differential input reserved 14:13 - 0?h reserved vol_rx_p 12:8 r/w 8?h monoin_n input volume control 00?h: 12db ~ 08?h: 0db ~ 1f?h: -34.5db, with 1.5db/step reserved 7:5 - 0?h reserved vol_rx_n 4:0 r/w 8?h monoin_p input volume control 00?h: 12db ~ 08?h: 0db ~ 1f?h: -34.5db, with 1.5db/step 8.19. reg-28h: speaker mixer control default: f8f8?h table 32. reg-28h: speaker mixer control name bits read/write reset state description mu_recmixl_to_spk mixl 15 r/w 1?h left rec mixer (recmixl) to left speaker mixer (spkmixl) 0?b: un-mute 1?b: mute free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 39 rev. 0.9 name bits read/write reset state description mu_mic1p_to_spkm ixl 14 r/w 1?h mic1 positive channel to left speaker mixer (spkmixl) 0?b: un-mute 1?b: mute mu_dacl_to_spkmixl 13 r/w 1?h dac left channel to left speaker mixer (spkmixl) 0?b: un-mute 1?b: mute mu_outmixl_to_spk mixl 12 r/w 1?h left output mixer (outmixl) to left speaker mixer (spkmixl) 0?b: un-mute 1?b: mute reserved 11:8 r/w 8?h reserved, don?t change it mu_recmixr_to_spk mixr 7 r/w 1?h right rec mixer (recmixr) to right speaker mixer (spkmixr) 0?b: un-mute 1?b: mute mu_mic2p_to_spkm ixr 6 r/w 1?h mic2 positive channel to right speaker mixer (spkmixr) 0?b: un-mute 1?b: mute mu_dacr_to_spkmix r 5 r/w 1?h dac right channel to right speaker mixer (spkmixr) 0?b: un-mute 1?b: mute mu_outmixr_to_spk mixr 4 r/w 1?h right output mixer (outmixr) to right speaker mixer (spkmixr) 0?b: un-mute 1?b: mute reserved 3:0 r/w 8?h reserved, don?t change it 8.20. reg-2ah: speaker/mono output control default: fc00?h table 33. reg-2ah: speaker/mono output control name bits read/write reset state description mu_spkvoll_to_spol mix 15 r/w 1?h left speaker volume (spklvol) to left speaker output mixer (spolmix) 0?b: un-mute 1?b: mute mu_spkvolr_to_spol mix 14 r/w 1?h right speaker volume (spkrvol) to left speaker output mixer (spolmix) 0?b: un-mute 1?b: mute free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 40 rev. 0.9 name bits read/write reset state description mu_spkvoll_to_spor mix 13 r/w 1?h left speaker volume (spklvol) to right speaker output mixer (spormix) 0?b: un-mute 1?b: mute mu_spkvolr_to_spor mix 12 r/w 1?h right speaker volume (spkrvol) to right speaker mixer (spormix) 0?b: un-mute 1?b: mute mu_outvoll_to_mon omix 11 r/w 1?h left output volume (outvoll) to mono mixer (monomix) 0?b: un-mute 1?b: mute mu_outvolr_to_mon omix 10 r/w 1?h right output volume (outvolr) to mono mixer (monomix) 0?b: un-mute 1?b: mute reserved 9:0 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 41 rev. 0.9 8.21. reg-2ch: speaker/mono/hp output control default: 4400h table 34. 3 reg-2ch: speaker/mono/hp output control name bits read/write reset state description sel_spol 15:14 r/w 1?h left speaker output mux selection 00?b: left speaker output mixer (spolmix) 01?b: monoin input 10?b:reserved 11?b: dac left channel reserved 13:12 - 0?h reserved sel_spor 11:10 r/w 1?h right speaker output mux selection 00?b: right speaker output mixer (spormix) 01?b: monoin input 10?b: reserved 11?b: dac right channel reserved 9:8 - 0?h reserved sel_mono 7:6 r/w 1?h mono output mux selection 00?b: mono mixer (monomix) 01?b: monoin input 10?b: reserved 11?b: reserved reserved 5:4 - 0?h reserved sel_lin_hp 3 r/w 0?h left headphone output mux selection 0?b: left headphone output volume 1?b: dac left channel sel_rin_hp 2 r/w 0?h right headphone output mux selection 0?b: right headphone output volume 1?b: dac right channel reserved 1:0 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 42 rev. 0.9 8.22. reg-34h: stereo i 2 s serial data port control default: 8000?h table 35. reg-34h: stereo i 2 s serial data port control name bits read/write reset state description sel_i2s_ms 15 r/w 1?h stereo i 2 s serial data port mode selection 0?b: master 1?b: slave reserved 14:12 - 0?h reserved en_adc_comp 11:10 r/w 0?h adc compress (for adcdat output) 00?b: off 01?b: law 10?b: a law 11?b: reserved en_dac_comp 9:8 r/w 0?h dac compress (for dacdat input) 00?b: off 01?b: law 10?b: a law 11?b: reserved inv_bclk 7 r/w 0?h stereo i 2 s bclk polarity control 0?b: normal 1?b: invert inv_r_ch 6 r/w 0?h inverse dac r channel digital data for support differential output. 0?b: normal 1?b: inverse inv_adc_lrck 5 r/w 0?h adc data l/r swap control 0?b: adc data appear at left phase of lrck 1?b: adc data appear at right phase of lrck note: support to i2s & pcm inv_dac_lrck 4 r/w 0?h dac data l/r swap control 0?b: dac data appear at left phase of lrck 1?b: dac data appear at right phase of lrck note: support to i2s & pcm sel_i2s_len 3:2 r/w 0?h data length selection 00?b: 16 bits 01?b: 20 bits 10?b: 24 bits 11?b: 8 bits sel_i2s_format 1:0 r/w 0?h stereo pcm data format selection 00?b: i 2 s format 01?b: left justified 10?b: pcm mode a 11?b: pcm mode b free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 43 rev. 0.9 8.23. reg-38h: stereo adc/dac clock control default: 2020?h table 36. 3 reg-38h: stereo adc/dac clock control name bits read/write reset state description sel_i2s_pre_div1 15:13 r/w 1?h i 2 s pre div1 000?b: 1 001?b: 2 010?b: 4 011?b: 8 100?b: 16 101?b: 32 others: reserved sel_i2s_bclk_ms1 12 r/w 0?h master mode clock relative of bclk and lrck 0?b: 32bits (64fs) 1?b: 16bits (32fs) sel_dac_osr 11:10 r/w 0?h stereo dac over sample rate select 00?b: 128fs 01?b: 64fs 10?b: 32fs 11?b: 16fs sel_adc_osr 9:8 r/w 0?h stereo adc over sample rate select 00?b: 128fs 01?b: 64fs 10?b: 32fs 11?b: 16fs sel_filter_clk1 7 r/w 0?h stereo adc/dac filter clock select 0?b: 256fs 1?b: 384fs reserved 6:0 r/w 2?h reserved, don?t change it free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 44 rev. 0.9 8.24. reg-3ah: power management 1 default: 0000?h table 37. reg-3ah: power management 1 name bits read/write reset state description en_i2s 15 r/w 0?h stereo i 2 s digital interface power control 0?b: power down 1?b: power on reserved 14:13 r/w 0?h reserved, don?t change it pow_clsd 12 r/w 0?h class-d modulation power control 0?b: power down 1?b: power on pow_adc_l 11 r/w 0?h left analog adc and digital filter power control 0?b: power down 1?b: power on pow_adc_r 10 r/w 0?h right analog adc and digital filter power control 0?b: power down 1?b: power on pow_dac_l 9 r/w 0?h left analog dac and digital filter power control 0?b: power down 1?b: power on pow_dac_r 8 r/w 0?h right analog dac and digital filter power control 0?b: power down 1?b: power on pow_dac_ref 7 r/w 0?h stereo dac reference power control 0?b: power down 1?b: power on pow_dacl2mixer 6 r/w 0?h dac l channel to mixer 0?b: power down 1?b: power on pow_dacr2mixer 5 r/w 0?h dac r channel to mixer 0?b: power down 1?b: power on reserved 4:0 r/w 0?h reserved, don?t change it free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 45 rev. 0.9 8.25. reg-3bh: power management 2 default: 0000?h table 38. reg-3bh: power management 2 name bits read/write reset state description pow_outmixl 15 r/w 0?h left output mixer (outmixl) power control 0?b: power down 1?b: power on pow_outmixr 14 r/w 0?h right output mixer (outmixr) power control 0?b: power down 1?b: power on pow_spkmixl 13 r/w 0?h left speaker mixer (spkmixl) power control 0?b: power down 1?b: power on pow_spkmixr 12 r/w 0?h right speaker mixer (spkmixr) power control 0?b: power down 1?b: power on pow_recmixl 11 r/w 0?h left rec mixer (recmixl) power control 0?b: power down 1?b: power on pow_recmixr 10 r/w 0?h right rec mixer (recmixr) power control 0?b: power down 1 ? b: power on reserved 9:6 - 0?h reserved pow_mic1 5 r/w 0?h mic1 boost gain power control 0?b: power down 1?b: power on pow_mic2 4 r/w 0?h mic2 boost gain power control 0?b: power down 1?b: power on pow_micbias1 3 r/w 0?h mic1 bias voltage power control 0?b: power down 1?b: power on pow_micbias2 2 r/w 0?h mic2 bias voltage power control 0?b: power down 1?b: power on pllen_pll 1 r/w 0?h pll power control 0?b: power down 1?b: power on reserved 0 r/w 0?h reserved, don?t change it free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 46 rev. 0.9 8.26. reg-3ch: power management 3 default: 0000?h table 39. reg-3ch: power management 3 name bits read/write reset state description pow_vref 15 r/w 0?h vref voltage power control 0?b: power down 1?b: power on en_fastb 14 r/w 0?h fast vref control 0?b: enable 1?b: disable (for beter analog performance) pow_main_bias 13 r/w 0?h analog block bias control 0?b: power down 1?b: power on reserved 12 - 0?h reserved pow_axo1 11 r/w 0?h axo1 mixer power control 0?b: power down 1?b: power on pow_axo2 10 r/w 0?h axo2 mixer power control 0?b: power down 1?b: power on pow_monomix 9 r/w 0?h mono mixer (monomix) power control 0?b: power down 1?b: power on en_out_mono 8 r/w 0?h monoout output depop mode control 0?b: enable depop mode 1?b: disable depop mode en_mono_amp 7 r/w 0?h monoout output amplifier driving control 0?b: disable amplifier driving (without driving capability) 1?b: enable amplifier driving (with driving capability) reserved 6:5 - 0?h reserved pow_cp_hp 4 r/w 0?h charge pump power control 0?b: power down 1?b: power on this register will be no used when pow_capless =1?b pow_l_hp 3 r/w 0?h headphone amplifier left channel power control 0?b: power down 1?b: power on this register will be no used when pow_capless =1?b pow_r_hp 2 r/w 0?h headphone amplifier right channel power control 0?b: power down 1?b: power on this register will be no used when pow_capless =1?b en_out_hp 1 r/w 0?h headphone output depop mode control 0?b: depop mode 1?b: normal mode this register will be no used when pow_capless =1?b free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 47 rev. 0.9 name bits read/write reset state description reserved 0 r/w 0?h reserved, don?t change it 8.27. reg-3eh: power management 4 default: 0000?h table 40. reg-3eh: power management 4 name bits read/write reset state description pow_spo_vol_l 15 r/w 0?h left speaker volume (spklvol) power control 0?b: power down 1?b: power on pow_spo_vol_r 14 r/w 0?h right speaker volume (spkrvor) power control 0?b: power down 1?b: power on pow_o_vol_l 13 r/w 0?h left output volume (outvoll) power control 0?b: power down 1?b: power on pow_o_vol_r 12 r/w 0?h right output volume ( outvolr) power control 0?b: power down 1?b: power on pow_hpo_vol_l 11 r/w 0?h left headphone output volume (hpovoll) power control 0?b: power down 1?b: power on pow_hpo_vol_r 10 r/w 0?h right headphone output volume (hpovolr) power control 0?b: power down 1?b: power on pow_axi_vol_l 9 r/w 0?h axil input volume power control 0?b: power down 1?b: power on pow_axi_vol_r 8 r/w 0?h axir input volume power control 0?b: power down 1?b: power on pow_rx_vol_p 7 r/w 0?h monoin_p input volume power control 0?b: power down 1?b: power on pow_rx_vol_n 6 r/w 0?h monoin_ n input volume power control 0?b: power down 1?b: power on reserved 5:0 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 48 rev. 0.9 8.28. reg-40h: general purpose control register default: 0e00?h table 41. reg-40h: general purpose control register name bits read/ write reset state description en_spk_auto_ratio 15 r/w 0?h speaker amplifier auto ratio gain control 0?b: disable (manual setting) 1?b: enable (auto setting) spk_gain 14:12 r/w 0?h speaker amplifier ac ratio gain control 000?b: 1.00 avdd ( 0db ) 001?b: 1.09 avdd ( 0.80db ) 010?b: 1.27 avdd ( 2.10db ) 011?b: 1.44 avdd ( 3.16db ) 100?b: 1.56 avdd ( 3.86db ) 101?b: 1.68 avdd ( 4.50db ) 110?b: 1.99 avdd ( 5.99db ) 111?b: 2.34 avdd ( 7.40db ) note: when en_spk_auto_ratio=0?b, this register can set ac gain ratio of spk amplifier. this register is not work when en_spk_auto_ratio=1?b en_dac_hpf 11 r/w 1?h stereo dac high-pass-filter (hpf) control 0?b: bypass hpf 1?b: with hpf en_adc_hpf 10 r/w 1?h stereo adc high-pass-filter (hpf) control 0?b: bypass hpf 1?b: with hpf reserved 9:6 - 1?h reserved, don?t change it sel_adhpf_fs_type 5:4 r/w 0?h select adc wind filter clock type n 00?b: type1 01?b: type2 10?b: type3 11?b: reserved en_adc_wf 3 r/w 0?h adc wind filter control 0?b: disable 1?b: enable sel_adc_wf 2:0 r/w 0?h select adc wind filter corner frequency n n sampling rate ( sel_adhpf_fs_type ) = 48khz sel_adc_wf 00?b 01?b 10?b 000 130 hz 260 hz 440 hz 001 170 hz 330 hz 556 hz 010 171 hz 330 hz 556 hz 011 254 hz 448 hz 770 hz 100 330 hz 640 hz 1124 hz 101 420 hz 730 hz 1200 hz 110 509 hz 770 hz 2000 hz 111 620 hz 1260 hz 2155 hz the setting of reg-40h_b5:4 is need to the same as i2s sa mple rate. or will have frequency difference for corner frequency of wind filter. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 49 rev. 0.9 8.29. reg-42h: global clock control default: 0000?h table 42. reg-42h: global clock control name bits read/write reset state description sel_sysclk1 15:14 r/w 0?h system clock source selection 00?b: mclk 01?b: pll others: reserved sel_pll_sour1 13:12 r/w 0?h pll source selection 00?b: from mclk 01?b: from bclk others: reserved sel_pll_pre_div1 11 r/w 0?h pll pre-divider 0?b: 1 1?b: 2 reserved 10:0 - 0?h reserved, don?t change it 8.30. reg-44h: pll control default: 0000?h table 43. reg-44h: pll control name bits read/write reset state description pll_n_code 15:8 r/w 00?h n[7:0] code for analog pll 00000000?b: 2 00000001?b: 3 ~ 11111111?b: 257 pll_m_bypass 7 r/w 0?h bypass pll m 0?b: no bypass 1?b: bypass pll_k_code 6:4 r/w 0?h k[2:0] code for analog pll 000?b: 2 001?b: 3 ~ 111?b: 9 pll_m_code 3:0 r/w 0?h m[3:0] code for analog pll 0000?b: 2 0001?b: 3 ~ 1111?b: 17 note: the pll transmit formula is fout = (mclk * (n+2))/((m+2) * (k+2)) {typical k=2}. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 50 rev. 0.9 8.30.1. pll clock setting table for 48k: (unit: mhz) table 44. pll clock setting table for 48k: (unit: mhz) mclk n m f vco k f out 13 66 7 98.222 2 24.555 3.6864 78 1 98.304 2 24.576 2.048 94 0 98.304 2 24.576 4.096 70 1 98.304 2 24.576 12 80 8 98.4 2 24.6 15.36 81 11 98.068 2 24.517 16 78 11 98.462 2 24.615 19.2 80 14 98.4 2 24.6 19.68 78 14 98.4 2 24.6 8.30.2. pll clock setting table fo r 44.1k: (unit: mhz) table 45. pll clock setting table for 44.1k: (unit: mhz) mclk n m f vco k f out 13 68 8 91 2 22.75 3.6864 72 1 90.931 2 22.733 2.048 86 0 90.112 2 22.528 4.096 64 1 90.112 2 22.528 12 66 7 90.667 2 22.667 15.36 63 9 90.764 2 22.691 16 66 10 90.667 2 22.667 19.2 64 12 90.514 2 22.629 19.68 67 13 90.528 2 22.632 8.31. reg-48h: internal status and irq control 1 default: 0000?h table 46. reg-48h: internal status and irq control 1 name bits read/write reset state description en_irq_ovcd 15 r/w 0?h irq output source decision for over current status 0?b: disable over current status to irq output 1?b: enable over current status to irq output free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 51 rev. 0.9 name bits read/write reset state description en_irq_ovtd 14 r/w 0?h irq output source decision for over temperature status 0?b: disable over temperat ure status to irq output 1?b: enable over temperature status to irq output en_irq_jd 13 r/w 0?h irq output source decision for jack detection status 0?b: disable jack detection status to irq output 1?b: enable jack detection status to irq output reserved 12:2 - 0?h reserved inv_ovtd 1 r/w 0?h over temperature status polarity 0?b: normal 1?b: output invert inv_ovcd 0 r/w 0?h speaker amplifier over current status polarity 0?b: normal 1?b: output invert 8.32. reg-4ah: internal status and irq control 2 default: 0700?h table 47. reg-4ah: internal status and irq control 2 name bits read/write reset state description en_adc_mono_source 15:14 r/w 0?h adc mono mode data source select: 00?b: disable 01?b: from l-ch 10?b: from r-ch 11?b: reserved reserved 13:4 - 38?h reserved, don?t change it sta_jd_internal 3 r 0?h jd status 0?b: low 1?b: high sta_gpio 2 r 0?h gpio pin status 0?b: low 1?b: high ovt_status 1 r 0?h over temperature sensor status 0?b: normal 1?b: over temperature sta_ovcd 0 r 0?h speaker amplifier over current status 0?b: normal 1?b: over current 8.33. reg-4ch: 3 gpio control default: 0000?h free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 52 rev. 0.9 table 48. reg-4ch: gpio control name bits read/write reset state description sel_gpio_type 15 r/w 0?h gpio pin selec t 0?b: gpio / dmic_sda 1?b: irq output reserved 14 - 0?h reserved sel_dmic_scl 13:12 r/w 0?h dmic_scl output pin select 00?b: dmic clock output 01?b: pll output 10?b: reserved 11?b: reserved reserved 11:4 - 0?h reserved, don?t change it sel_gpio_dmic 3 r/w 0?h gpio or dmic data input selection 0?b: gpio 1?b: dmic data input sel_gpio 2 r/w 0?h gpio pin configuration 0?b: input 1?b: output sel_gpio_logic 1 r/w 0?h gpio output pin control 0?b: drive low 1?b: drive high inv_gpio 0 r/w 0?h gpio pin polarity 0?b: normal 1?b: output invert 8.34. reg-52h: misc. control default: 2040?h table 49. reg-52h: misc. control name bits read/write reset state description pow_thermal 15 r/w 0?h thermal sensor control 0?b: disable 1?b: enable thermal sensor en_thermal_shutdown 14 r/w 0?h thermal shut down enable 0?b: disable 1?b: enable free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 53 rev. 0.9 name bits read/write reset state description en_ovcd_hp 13 r/w 1?h enable hp amp over current protection 0?b: disable 1?b: enable reserved 12 - 0?h reserved sel_ovcd_th_hp 11:10 r/w 0?h hp amp over current protection threshold 00?b: 100ma 01?b: 150ma 10?b: 200ma 11?b: 250ma reserved 9:8 - 0?h reserved tmp_th_set 7:4 r/w 4?h temperature sensor threshold setting 0000?b: na 0001?b: -40 o c 0010?b: -30 o c 0011?b: -10 o c 0100?b: +10 o c 0101?b: +30 o c 0110?b: +60 o c 0111?b: +70 o c 1000?b: +80 o c 1001?b: +90 o c 1010?b: +100 o c 1011?b: +110 o c 1100?b: +120 o c 1101?b: +130 o c 1110?b: +150 o c 1111?b: reserved reserved 3:0 - 0?h reserved 8.35. reg-54h: de-pop function control 1 default: 0000?h table 50. reg-54h: de-pop function control 1 name bits read/write reset state description pow_softgen_hp 15 r/w 0?h hp soft generator control 0?b: power down 1?b: power on free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 54 rev. 0.9 name bits read/write reset state description smttrig 14 r/w 0?h hp softgen trigger control 0?b: power down 1?b: power on reserved 13 r/w 0?b reserved, don?t change it en_dp_mono 12 r/w 0?b enable de-pop mode for mono amp 0?b: disable 1?b: enable reserved 11 r/w 0?b reserved, don?t change it en_smt_mono 10 r/w 0?b enable mono amp mute/un-mute de-pop 0?b: disable 1?b: enable pdn_mono 9 r/w 0?b power down mono amp starts up signal 0?b: disable 1?b: enable reserved 8:7 r/w 0?h reserved, don?t change it en_dp_hp 6 r/w 0?h enable de-pop mode for hpo 0?b: disbale 1?b: enable pdn_l_hp 5 r/w 0?h power on hpo_l start-up signal 0?b: disable 1?b: enable pdn_r_hp 4 r/w 0?h power on hpo_r start-up signal 0?b: disable 1?b: enable reserved 3:2 - 0?h reserved en_smt_l_hp 1 r/w 0?h enable hpo_l mute/un-mute de-pop 0?b: disable 1?b: enable en_smt_r_hp 0 r/w 0?h enable hpo_r mute/un-mute de-pop 0?b: disable 1?b: enable 8.36. reg-56h: de-pop function control default: 0000?h table 51. reg-56h: de-pop function control name bits read/write reset state description free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 55 rev. 0.9 name bits read/write reset state description depop_hp 15 r/w 0?h de-pop mode control 0?b: enable 1-bit de-pop function 1?b: de-pop function by register pow_capless 14 r/w 0?h power on cap-free block with de-pop mode 0?b: power down 1?b: power on reserved 13:0 r/w 0?h reserved, don?t change it 8.37. reg-5ah: jack detection control default: 0000?h table 52. reg-5ah: jack detection control name bits read/write reset state description sel_jd_source 15:14 r/w 0?h jack detect pin selection 00?b: off 01?b: gpio 10?b: jd1 and enable axil pin share 11?b: jd2 and enable axir pin share note1: sel_jd_so urce axil_pin_sh aring axir_pin_sh aring enable zcd for mute 00'b 0'b 0'b false 01'b 0'b 0'b true 10'b 1'b 0'b true 11'b 0'b 1'b true reserved 13:12 - 0?h reserved en_jd_hpo 11 r/w 0?h jack detect trigger target: hp_out 0?b: disable hp_out 1?b: enable hp_out polarity_jd_tri_hpo 10 r/w 0?h jack detect trigger polarity for hp_out 0?b: low trigger 1?b: high trigger en_jd_spo_l 9 r/w 0?h jack detect trigger target: spo_lp/ln 0?b: disable spo_lp/ln 1?b: enable spo_lp/ln free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 56 rev. 0.9 name bits read/write reset state description polarity_jd_tri_spo_l 8 r/w 0?h jack detect trigger polarity for spo_lp/ln 0?b: low trigger 1?b: high trigger en_jd_spo_r 7 r/w 0?h jack detect trigger target: spo_rp/rn 0?b: disable spo_rp/rn 1?b: enable spo_rp/rn polarity_jd_tri_spo_r 6 r/w 0?h jack detect trigger polarity for spo_rp/rn 0?b: low trigger 1?b: high trigger en_jd_mono 5 r/w 0?h jack detect trigger target: monoout 0?b: disable monoout 1?b: enable monoout polarity_jd_tri_mono 4 r/w 0? h jack detect trigger polarity for monoout 0?b: low trigger 1?b: high trigger en_jd_axo1 3 r/w 0?h jack detect trigger target: axo1 0?b: disable axo1 1?b: enable axo1 polarity_jd_tri_axo1 2 r/w 0?h jack detect trigger polarity axo1 0?b: low trigger 1?b: high trigger en_jd_axo2 1 r/w 0?h jack detect trigger target: axo2 0?b: disable axo2 1?b: enable axo2 polarity_jd_tri_axo2 0 r/w 0?h jack detect polarity trigger axo2 0?b: low trigger 1?b: high trigger free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 57 rev. 0.9 8.38. reg-5ch: soft volume control default: 07e9?h table 53. reg-5ch: soft volume control name bits read/write reset state description en_softvol 15 r/w 0?h digital soft volume delay control 0?b: disable 1?b: enable en_spo_svol 14 r/w 0?h spo l/r soft volume delay control 0?b: disable 1?b: enable en_o_svol 13 r/w 0?h output soft volume delay control 0?b: disable 1?b: enable en_hpo_svol 12 r/w 0?h hpo soft volume delay control 0?b: disable 1?b: enable en_rx_svol 11 r/w 0?h monoin soft volume delay control 0?b: disable 1?b: enable pow_zcd 10 r/w 1?h zero crossing control 0?b: power down 1?b: power on en_axo1_zcd 9 r/w 1?h axo1 mute/un-mute zero crossing control 0?b: disable 1?b: enable en_axo2_zcd 8 r/w 1?h axo2 mute/un-mute zero crossing control 0?b: disable 1?b: enable en_spol_zcd 7 r/w 1?h spo left channel mute/un-mute zero crossing control 0?b: disable 1?b: enable en_spor_zcd 6 r/w 1?h spo right channel mute/un-mute zero crossing control 0?b: disable 1?b: enable en_mono_zcd 5 r/w 1?h monoout mute/un-mute zero crossing control 0?b: disable 1?b: enable reserved 4 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 58 rev. 0.9 name bits read/write reset state description sel_svol 3:0 r/w 9?h soft volume delay time (default=1001b) 0000?b: 1 * sync 0001?b: 2 * sync 0010?b: 4 * sync 0011?b: 8 * sync 0100?b: 16 * sync 0101?b: 32 * sync 0110?b: 64 * sync 0111?b: 128 * sync 1000?b: 256 * sync 1001?b: 512 * sync 1010?b: 1024 * sync others: reserved , sync=1/fs 8.39. reg-64h: alc control 1 default: 0206?h table 54. reg-64h: alc control 1 name bits read/write reset state description reserved 15:13 - 0?h reserved sel_alc_atk 12:8 r/w 2?h select alc attack rate n 00?h: 83 usec 01?h: 0.167 msec ~ 10?h: 5.46 sec others: reserved reserved 7:5 - 0?h reserved sel_rc_rate 4:0 r/w 6?h select alc recovery rate o 00?h: 83 usec 01?h: 0.167 msec ~ 10?h: 5.46 sec others: reserved n attack time=(4*2^n)/sample_rate, n=reg64[12:8], default=0.33ms at sample rate = 48khz o recovery time=(4*2^n)/sample_rate, n= reg64 [4:0], default=5.3ms at sample rate = 48 khz free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 59 rev. 0.9 8.40. reg-65h: alc control 2 default: 0000?h table 55. reg-65h: alc control 2 name bits read/write reset state description reserved 15:4 - 0?h reserved noise_gate_boost 3:0 r/w 0?h noise level reduction gain when signal is below noise gate level. n 0000?b: 0db 0001?b: 3db 0010?b: 6db ~ 1110?b: 42db 1111?b: 45db n when signal is below noise gate, can select gain to reduce nois e level. the noise level is equal to - (original noise level + reduction gain) 8.41. reg-66h: alc control 3 default: 2000?h table 56. reg-66h: alc control 3 name bits read/write reset state description sel_alc 15 r/w 0?h alc select 0?b: enable alc for dac path 1?b: enable alc for adc path alc_en 14 r/w 0?h alc enable 1?b: alc enable 0?b: alc disable update_alc_param 13 r/w 1?h update alc parameter write 1?b to update all alc parameter then auto clear to zero sel_alc_thmax 12:8 r/w 0?h alc limit level 00?h: 0dbfs 01?h: -1.5dbfs 02?h: -3dbfs 03?h: -4.5dbfs ~ 1f?h: -46.5dbfs en_alc_noise_gate 7 r/w 0?h noise gate function control 0?b: disable 1?b: enable en_alc_noise_gate_hold 6 r/w 0?h enable noise gate hold data function 0?b: disable 1?b: enable reserved 5 - 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 60 rev. 0.9 name bits read/write reset state description sel_alc_noise_th 4:0 r/w 0?h noise gate threshold 00?h: -36dbfs 01?h: -375dbfs ~ 1f?h: -82.5 dbfs 8.42. reg-68h: pseudo stereo and spatial effect control default: 0553?h table 57. reg-68h: pseudo stereo and spatial effect control name bits read/write reset state description spatial_ctrl_en 15 r/w 0?h spatial effect enable 0: disable 1: enable apf_en 14 r/w 0?h enable all pass filter (en apf) 0: disable 1: enable the coefficient a1 is loaded from apf_parm_a1 pseudo_stereo_en 13 r/w 0?h enable pseudo stereo (en-pseudo) 0: disable 1: enable en_3d 12 r/w 0?h enable stereo expension (en-3d) 0: disable 1: enable load 3d ratio from ratio_parm_3d and 3d gain from gain_parm_3d gainl_parm_3d 11:10 r/w 1?h 3d gain1 parameter (segn) 00?b: gain = 1.0 01?b: gain = 1.5 10?b: gain = 2.0 11?b: reserved ratiol_parm_3d 9:8 r/w 1?h 3d ratio1 parameter (dpn) 00?b: ratio = 0.0 01?b: ratio = 0.66 10?b: ratio = 1.0 11?b: reserved gainr_parm_3d 7:6 r/w 1?h 3d gain2 parameter (segn) 00?b: gain = 1.0 01?b: gain = 1.5 10?b: gain = 2.0 11?b: reserved ratior_parm_3d 5:4 r/w 1?h 3d ratio2 parameter (dpn) 00?b: ratio = 0.0 01?b: ratio = 0.66 10?b: ratio = 1.0 11?b: reserved reserved 3:2 r 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 61 rev. 0.9 name bits read/write reset state description apf_parm_a1 1:0 r/w 3?h all pass filter parameter a1 00?b: 0 01?b: -0.85 (for 32khz sample rate or lower) 10?b: -0.90 (for 44.1khz sample rate) 11?b: -0.95 (for 48khz sample rate) note: writes to segn and dpn will be ignored when the spatial effect control bit is enabled. this means individual spatial coefficients cannot be modified when spatial is enabled. 8.43. reg-6ah: index address default: 0000?h table 58. reg-6ah: index address name bits read/write reset state description reserved 15:7 - 0?h reserved index_reg_addr 6:0 rw 0?h index address 8.44. reg-6ch: index data default: 0000?h table 59. reg-6ch: index data name bits read/write reset state description index_reg_data 15:0 rw 0?h index data 8.45. reg-6eh: eq control 1 default: 0000?h table 60. reg-6eh: eq control 1 name bits read/write reset state description eq_sour 15 r/w 0?h eq control 0?b: for dac path 1?b: for adc path free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 62 rev. 0.9 name bits read/write reset state description eq_para_update 14 r 1?h eq parameter update control write 1?b to update all eq para meter then auto clear to zero sta_hpf2 13 r 0?h eq high pass filter 2 (hpf2) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. sta_hpf1 12 r 0?h eq high pass filter 1 (hpf1) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. sta_bpf3 11 r 0?h eq band pass filter 3 (bp3) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. sta_bpf2 10 r 0?h eq band pass filter 2 (bp2) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. sta_bpf1 9 r 0?h eq band pass filter 1 (bp1) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. sta_lpf 8 r 0?h eq low pass filter (lpf) status. 0?b: normal 1?b: overflow. this bit is set if overflow had ever occurred. write 1?b to clear it. reg_typ_hpf_en 7 r/w 0?h eq high pass filter 1 mode control 0?b: high frequency shelving filter 1?b: 1st order typical hpf (-20db per decade) reg_typ_lpf_en 6 r/w 0?h eq low pass shelving filter mode control 0?b: low frequency shelving filter 1?b: 1st order typical lpf (-20db per decade) en_hpf2 5 r/w 0?h eq high pass shelving filter 2 (hpf2) control. 0?b: disabled (bypass) and reset 1?b: enabled en_hpf1 4 r/w 0?h eq high pass shelving filter 1 (hpf2) control. 0?b: disabled (bypass) and reset 1?b: enabled en_bpf3 3 r/w 0?h eq band pass filter 3 (bp3) shelving filter control. 0?b: disabled and reset 1?b: enabled. en_bpf2 2 r/w 0?h eq band pass filter 2 (bp2) shelving filter control. 0?b: disabled and reset 1?b: enabled. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 63 rev. 0.9 name bits read/write reset state description en_bpf1 1 r/w 0?h eq band pass filter 1 (bp1) shelving filter control. 0?b: disabled and reset 1?b: enabled. en_lpf 0 r/w 0?h eq low pass filter (lpf) shelving filter control. 0: disabled and reset 1: enabled. 8.46. index-00h: eq low pass filter coefficient (lpf: a1) default: 1c10?h table 61. index-00h: eq low pass filter coefficient (lpf: a1) name bits rw default description lpf_a1 15:0 r/w 1c10?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) note: for low pass filter for bass control ? lp0 has filter coeffici ent a1 and gain ho must be set 8.47. index-01h: eq low pass filter gain (lpf: ho) default: 01f4?h table 62. index-01h: eq low pass filter gain (lpf: ho) name bits rw default description lpf_h0 15:0 r/w 01f4?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) 8.48. index-02h: eq band pass filter 1 coefficient (bpf1: a1) default: c5e9?h table 63. index-02h: eq band pass filter 1 coefficient (bpf1: a1) name bits rw default description bpf1_a1 15:0 r/w c5e9?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) 8.49. index-03h: eq band pass filter 1 coefficient (bpf1: a2) default: 1a98?h free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 64 rev. 0.9 table 64. index-03h: eq band pass filter 1 coefficient (bpf1: a2) name bits rw default description bpf1_a2 15:0 r/w 1a98?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a2 should be in ?2 ~ 1.99) 8.50. index-04h: eq band pass filter 1 gain (bpf1: ho) default: 1d2c?h table 65. index-04h: eq band pass filter 1 gain (bpf1: ho) name bits rw default description bpf1_h0 15:0 r/w 1d2c?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) 8.51. index-05h: eq band pass filter 2 coefficient (bpf2: a1) default: c882?h table 66. index-05h: eq band pass filter 2 coefficient (bpf2: a1) name bits rw default description bpf2_a1 15:0 r/w c882?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) 8.52. index-06h: eq band pass filter 2 coefficient (bpf2: a2) default: 1c10?h table 67. index-06h: eq band pass filter 2 coefficient (bpf2: a2) name bits rw default description bpf2_a2 15:0 r/w 1c10?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a2 should be in ?2 ~ 1.99) 8.53. index-07h: eq band pass filter 2 gain (bpf2: ho) default: 01f4?h table 68. index-07h: eq band pass filter 2 gain (bpf2: ho) name bits rw default description bpf2_h0 15:0 r/w 01f4?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 65 rev. 0.9 8.54. index-08h: eq band pass filter 3 coefficient (bpf3: a1) default: e904?h table 69. index-08h: eq band pass filter 3 coefficient (bpf3: a1) name bits rw default description bpf3_a1 15:0 r/w e904?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) 8.55. index-09h: eq band pass filter 3 coefficient (bpf3: a2) default: 1c10?h table 70. index-09h: eq band pass filter 3 coefficient (bpf3: a2) name bits rw default description bpf3_a2 15:0 r/w 1c10?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a2 should be in ?2 ~ 1.99) 8.56. index-0ah: eq band pass filter 3 gain (bpf3: ho) default: 01f4?h table 71. index-0ah: eq band pass filter 3 gain (bpf3: ho) name bits rw default description bpf3_h0 15:0 r/w 01f4?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) 8.57. index-0bh: eq high pass filter 1 coefficient (hpf1: a1) default: 1c10?h table 72. index-0bh: eq high pass filter 1 coefficient (hpf1: a1) name bits rw default description hpf1_a1 15:0 r/w 1c10?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 66 rev. 0.9 8.58. index-0ch: eq high pass filter 1 gain (hpf1: ho) default: 01f4?h table 73. index-0ch: eq high pass filter 1 gain (hpf1: ho) name bits rw default description hpf1_h0 15:0 r/w 01f4?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) 8.59. index-0dh: eq high pass filter 2 coefficient (hpf2: a1) default: c01e?h table 74. index-0dh: eq high pass filter 2 coefficient (hpf1: a1) name bits rw default description hpf2_a1 15:0 r/w c01e?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) 8.60. index-0eh: eq high pass filter 2 coefficient (hpf2: a2) default: 1fe2?h table 75. index-0eh: eq high pass filter 2 coefficient (hpf1: a2) name bits rw default description hpf2_a2 15:0 r/w 1fe2?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the a1 should be in ?2 ~ 1.99) 8.61. index-0fh: eq high pass filter 2 gain (hpf2: ho) default: 1ff1?h table 76. index-0fh: eq high pass filter 2 gain (hpf2: ho) name bits rw default description hpf2_h0 15:0 r/w 1ff1?h 2?s complement in 3.13 format. (the range is from ?4 ~ 3.99, the ho should be in ?4 ~ 3.99) 8.62. index-11h: eq input volume control default: 8000?h free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 67 rev. 0.9 table 77. index-11h: eq input volume control name bits rw default description eq_sel_hidden 15 r/w 1?h eq block control 0?b: disable (bypass eq) 1?b: enable reserved 14:3 r 0?h reserved reg_eq_pre_vol 2:0 r/w 0?h volume unsigned ratio eqin-vol-lr 000?b: 0db 001?b: -3db 010?b: -6db 011?b: -9db 100?b: -12db 101?b: -15db 110?b: -18db 111?b: -21db note: individual eq coefficients cannot be modified when eq is enabled. 8.63. index-12h: eq output volume control default: 0003?h table 78. index-12h: eq output volume control name bits rw default description reserved 15:4 r 0?h reserved reg_eq_post_vol 3:0 r/w 3?h volume unsigned ratio eqout-vol-lr 0000?b: -4.5db 0001?b: -3db 0010?b: -1.5db 0011?b: 0db 0100?b: 1.5db 0101?b: 3db 0110?b: 4.5db 0111?b: 6db 1000?b: 7.5db 1001?b: 9db 1010?b: 10.5db 1011?b: 12db 1100?b: 13.5db 1101?b: 15db 1110?b: 16.5db 1111?b: 18db 8.64. index-20h: alc dac digital volume default: 0000?h table 79. index-20xxh: alc dac digital volume name bits rw default description sta_vol_dac_l 15:8 r 0?h dac left channel digital volume in 0.375 db step n free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 68 rev. 0.9 sta_vol_dac_r 7:0 r 0?h dac right channel digital volume in 0.375 db step n for n 00h ffh 0db gain 95.625 db attenuation 8.65. index-21h: auto volume control register 1 default: 4000?h table 80. index-21h: auto volume control register 1 name bits rw default description sel_alc_lpf_coef 15:13 r/w 2?h select low pass filter coefficient of energy detect 000?b: 2 -4 001?b: 2 -5 010?b: 2 -6 011?b: 2 -7 100?b: 2 -8 sel_alc_min_range 12 r/w 0?h select slow bound of threshold 0?b: +0.375db 1?b: +0.75db reserved 11:9 r 0?h reserved sel_dac_post_bst 8:4 r/w 0?h digital post-boost (1.5db/step) 00?h= 0db 01?h= 1.5db 02?h= 3db 03?h= 4.5db ??????.. 13?h= 28.5dbfs others: reserved sel_alc_atk_speed 3:2 r/w 0?h select gain step when energy of alc is large than full scale 00?b: -0.375db/step 01?b: -1.125db/step 10?b: -1.875db/step 11?b: -2.625db/step free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 69 rev. 0.9 sel_alc_full_th 1:0 r/w 0?h full scale targe 00?b: 0dbfs 01?b: -1.5dbfs 10?b: -3dbfs 11?b: -4.5dbfs 8.66. index-22h: auto volume control register 2 default: a280?h table 81. index-22h: auto volume control register 2 name bits rw default description en_rc_fast 15 r/w 1?h enable fast recovery 0?b: disable 1?b: enable ctl_alc_force_fast_r c 14 r/w 0?h alc force fast recovery control 0?b: disable force fast recovery 1?b: enable force fast recovery immediately en_alc_force_fast_r c 13 r/w 1?h enable alc force fast recovery control 0?b: disable fast reco very for special case 1?b: enable fast recovery for normal use sel_alc_fast_rate 12:8 r/w 2?h select fast alc recovery rate n 00?h: 83 usec 01?h: 0.167 msec ??????.. 10?h: 5.46 sec others: reserved en_alc_zero_data 7 r/w 1?h enable zero date detection 0?b: disable 1?b: enable reserved 6:3 r 0?h reserved free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 70 rev. 0.9 sel_alc_zero_th 2:0 r/w 0?h zero date threshold (-1.5db/step) 000?b: -84dbfs 001?b: -85.5dbfs 010?b: -87dbfs 011?b: -88.5dbfs 100?b: -90dbfs 101?b: -91.5dbfs 110?b: -93dbfs 111?b: -94.5dbfs n fast recovery time=(4*2^n)/sampl e_rate, n=pr22[12:8], default=0.33ms hex dec fast attack time 0 0 8.33333e-05 1 1 0.000166667 2 2 0.000333333 3 3 0.000666667 4 4 0.001333333 5 5 0.002666667 6 6 0.005333333 7 7 0.010666667 8 8 0.021333333 9 9 0.042666667 a 10 0.085333333 b 11 0.170666667 c 12 0.341333333 d 13 0.682666667 e 14 1.365333333 f 15 2.730666667 10 16 5.461333333 free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 71 rev. 0.9 8.67. index-23h: auto level control register 3 default: 0404?h table 82. index-23h: auto level control register 3 name bits rw default description sel_alc_rc_wd_max 15:8 r/w 4?h set upper bound of fast recovery windows(unit : sample) n sel_alc_rc_wd_min 7:0 r/w 4?h set lower bound of fast recovery windows (unit : sample) o n fast recovery time max = (256*n)/sample rate, default = 21.3ms o fast recovery time min = (128*n)/sample rate, default = 10.65ms 8.68. index-4ah: class-d internal register default: e300?h table 83. index-4ah: cl ass-d internal register name bits rw default description reserved 15 r/w 0?h reserved, don?t change it fbgain_clsd 14:12 r/w 0?h speaker gain control adapted for pvdd 000: 1x 001: 1.1x 010: 1.27x 011: 1.44x 100: 1.56x 101:1.68x 110: 2.0x 111: 2.34x n ote: when en_spk_auto_ratio=0?b, th is register can set ac and dc gain ratio of spk amplifier. this register is not work when en_spk_auto_ratio=1?b reserved 11:0 r/w f40?h reserved, don?t change it free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 72 rev. 0.9 8.69. reg-7ch: vendor id 1 default: 10ec?h table 84. reg-7ch: vendor id 1 name bits read/write reset state description vender_id1 15:0 r 10ec?h vendor id=10ec free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 73 rev. 0.9 9. electrical characteristics 9.1. dc characteristics 9.1.1. absolute maximum ratings table 85. absolute maximum ratings parameter symbol min typ max units power supplies digital io buffer digital core analog headphone speaker dbvdd dcvdd avdd cpvdd spkvdd -0.3 -0.3 -0.3 -0.3 -0.3 - - - - - 3.63 3.63 3.63 3.63 7 v v v v v operating ambient temperature ta -25 - +85 o c storage temperature ts -55 - +125 o c 9.1.2. recommended operating conditions table 86. recommended operating conditions parameter symbol min typ max units digital io buffer dbvdd 1.71 3.3 3.6 v digital core dcvdd 1.71 3.3 3.6 v analog avdd 2.3 3.3 3.6 v headphone cpvdd 2.3 3.3 3.6 v speaker spkvdd 1 3.0 3.3 5 v note 1: a 10f capacitor must be co nnected from spkvdd to spkgnd, and shoul d be placed as close as possible to the spkvdd pin. 9.1.3. static characteristics table 87. static characteristics parameter symbol min typ max units input voltage range v in -0.30 - dbvdd+0.30 v low level input voltage v il - - 0.35dbvdd v high level input voltage v ih 0.65dbvdd - - v high level output voltage v oh 0.9dbvdd - - v low level output voltage v ol - - 0.1dbvdd v input leakage current - -1 - 1 a output leakage current (hi-z) - -1 - 1 a output buffer high drive current - - 22 - ma output buffer low drive current - - 10 - ma v mid internal serial resistor - 25 50 75 k v mid internal serial resistor ratio - 95 100 105 % note: dvdd=3.3v, t ambient =25 c, with 50pf external load. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 74 rev. 0.9 9.2. analog performance characteristics table 88. analog performance characteristics parameter min typ max units full scale input voltage line inputs (single-ended) line inputs (differential) mic inputs (single-ended ) mic inputs (differential) - - - - 1.0 1.0 1.0 1.0 - - - - vrms vrms vrms vrms full scale output voltage line outputs (single-ended) line outputs (differential) headphone amplifiers outputs speaker amplifiers outputs (spkvdd=3.6v with 8 load, 1% thd+n) - - - 1.0 2.0 1.0 2.3 - - - vrms vrms vrms s/n ratio (a-weighted, hpl/r or mono with 10k /50pf load) stereo dac stereo adc - - 98 93 100 db db total harmonic distortion + noise (hpl/r or mono with 10k /50pf load) stereo dac stereo adc - - -90 -88 - - db db input impedance (gain=0db, adc mixer=on/off) mic1 inputs - 16 - k input impedance (gain=0db, adc mixer=on) line_in - 16 - k input impedance (gain=0db, adc mixer=off) line_in - 32 - k output impedance mono_out axo1/2 hp_out spk_out (class-d) - - - - 2 2 2 0.4 - - - - mono_out amplifier output power (32 load) btl mode - 100 mw mono_out amplifier quiescent current (32 load)/ch - 700 - a mono_out amplifier thd+n btl mode (32 load, rx_in to mono_out) output power = 100mw output power = 50mw - - 0.1 <0.02 - - % % mono_out amplifier psrr - 60 - db headphone amplifier output power (< 1 % thd, 16 load) - 50 mw free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 75 rev. 0.9 parameter min typ max units headphone amplifier thd+n (32 load) output power=20mw output power=25mw - - -70 -70 - - db db headphone amplifier psrr - 68 - db class-d btl speaker amplifier output power (spkvdd=3.6v with 8 load, 1% thd+n) (spkvdd=3.6v with 8 load, 10% thd+n) (spkvdd=3.6v with 4 load, 1% thd+n) (spkvdd=3.6v with 4 load, 10% thd+n) - - - - 0.68 0.9 1.1 1.5 - - - - w w w w class-d btl speaker amplifier output power (spkvdd=4.2v with 8 load, 1% thd+n) (spkvdd=4.2v with 8 load, 10% thd+n) (spkvdd=4.2v with 4 load, 1% thd+n) (spkvdd=4.2v with 4 load, 10% thd+n) - - - - 1.0 1.3 1.8 2.1 - - - - w w w w class-d btl speaker amplifier output power (spkvdd=5.0v with 8 load, 1% thd+n) (spkvdd=5.0v with 8 load, 10% thd+n) (spkvdd=5.0v with 4 load, 1% thd+n) (spkvdd=5.0v with 4 load, 10% thd+n) - - - - 1.2 1.5 2.1 2.8 - - - - w w w w class-d btl speaker amplifier thd+n performance (spkvdd=3.6v with 8 load, 500mw) - <0.02 - % btl speaker amplifier quiescent current (8 load, spkvdd=3.6v) class-d - 4 - ma btl speaker amplifier efficiency (f in =1khz, 4 load, spkvdd=5.0v, output power=2.8w, with lc filter, l=33uh and c=1uf) class-d - 82 - % btl speaker amplifier psrr - 65 - db stand-by current istand-by (dac to hp_out with 16 ohm load, no clock) istand-by (dac to hp_out with 16 ohm load, with clock) istand-by (mic_in_one channel to adc, no clock) istand-by (mic_in_one channel to adc, with clock) - - - - 8 10 6 9.5 - - - - ma ma ma ma power down current i dda (analog block) i ddd (digital block) - - - - 10 1 a a micbias1 output voltage 0.75*avdd setting 0.9*avdd setting - - 2.475 2.97 - - v v micbias2 output voltage 0.75*avdd setting 0.9*avdd setting - - 2.475 2.97 - - v v free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 76 rev. 0.9 parameter min typ max units micbias1 and micbias2 drive current micbias = 2.5v micbias = 2.4v - - 5 9 - - ma ma vref pull up resistor - 50 - k note: standard test conditions: t ambient =25 c, dbvdd=dcvdd=avdd=cpvdd=3.3v, spkvdd=5.0v. 1khz input sine wave; pcm sampling frequency=48khz; 0db=1vrms, test bench characterization bw: 10hz~22khz, 0db attenuation; eq and 3d disabled . table 89. thermal information parameter symbol min typ max units qfn48 thermal impedance (junction to case) jc - 8.4 - o c/w qfn48 thermal impedance (junction to ambient) ja - 28 - o c/w free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 77 rev. 0.9 9.3. signal timing 9.3.1. i 2 c control interface t w(9) t w(10) t sp t h(5) t h(6) t su(7) t su(8) t su(6) sclk sda figure 18. i 2 c control interface table 90. i 2 c timing parameter symbol minimum typical maximum units clock pulse duration t w(9) 1.3 - - s clock pulse duration t w(10) 600 - - ns clock frequency f 0 - 400k hz re-start setup time t su(6) 600 - - ns start hold time t h(5) 600 - - ns data setup time t su(7) 100 - - ns data hold time t h(6) - 0 n - - 900 o ns rising time t r - - 300 ns falling time t f - - 300 ns stop setup time t su(8) 600 - - ns pulse width of spikes suppressed input filter t sp 0 - 50 ns n a device must internally provide a hold time of at least 300ns for sda signal to bridge the undefined region of the falling edge of scl o the maximum t h (6) has only to be met if the device does not stretch the low period (t w (9)) of the sclk. free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 78 rev. 0.9 9.3.2. i 2 s/pcm interface master mode figure 19. timing of i 2 s/pcm master mode table 91. timing of i 2 s/pcm master mode parameter symbol min typ max units lrck output to bclk delay t lrd - - 30 ns data output to bclk delay t add - - 30 ns data input setup time t das 10 - - ns data input hold time t dah 10 - - ns free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 79 rev. 0.9 9.3.3. i 2 s/pcm interface slave mode figure 20. i 2 s/pcm slave mode timing table 92. i 2 s/pcm slave mode timing parameter symbol min typ max units bclk high pulse width t bch 20 - - ns bclk low pulse width t bcl 20 - - ns lrck input setup time t lrs 30 - - ns data output to bclk delay t add - - 30 ns data input setup time t das 10 - - ns data input hold time t dah 10 - - ns free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 80 rev. 0.9 10. application circuits spkvdd cpref dmic_scl dmic_sda hpol agnd axo2_r/n spkgnd dgnd hpor mon op c21 0.1uf cpgnd axil mon on c22 10uf cpvdd spo_ln axir c17 1uf c27 0.1uf micbias2 spkvdd1/2 c29 0.1uf dbvdd c31 0.1uf u1 ALC5631Q spo_lp 48 axo2_l/p 2 axo2_r/n 3 micbias1 7 axir 9 mon oi n _p 11 spo_ln 46 spo_rn 45 axo1_l/p 5 axo1_r/n 4 micbias2 6 scl 35 monoout_n 20 avdd 16 dacdat 30 adcdat 31 d_scl 38 dcvdd 39 dbvdd 40 agnd 18 monoout_p 19 mi c 1p 12 spkgnd 1 cpn 26 cpref 22 cpvee 27 hpo_l 29 bclk 32 lrck 33 cpvdd 23 cpp 24 cdepop 21 hpo_r 28 sda 34 mc lk 36 axil 8 mon oi n _n 10 spo_rp 43 spkvdd1 44 mi c 2n 14 mi c 2p 15 mn 1n 13 vref 17 spkgnd 49 dgnd 41 d_sda/gpio 37 cpgnd 25 spkvdd2 47 cpvee + c3 2.2u dcvdd dbvdd axo1_l/p cpvdd sdat spo_lp mi c 1p avdd mon oi n _n mon oi n _p spo_rn mi c 1n axo1_r/n mi c 2n mi c 2p r18 2k dacdat bclk lrck mc lk adcdat spo_rp sclk axo2_l/p bead fb3 + c9 2.2u c25 1u c23 1u by-pass capcity near ALC5631Q axo1_l/p axo1_r/n axo1 c24 1u c26 1u avdd axo2_l/p axo2_r/n axo2 c67 100p c19 0.1uf c20 10uf ear speaker 1 2 c5 1u spkvdd dcvdd mi c 2p c6 1u hp out mi c 2n mon on mon op r5 680 mono micbias2 r4 680 mic2 in c4 1u bb_n bb_p c8 1u mi c 1p mi c 1n r6 680 micbias1 r3 680 mic1 in ph3 line in 1 2 3 4 5 c13 1u c15 1u axil axir mon oi n _n mon oi n _p c14 1u c16 1u monoin axi from osc / processor micbias1 mc lk c18 4.7uf r19 2k c28 10uf c30 2.2uf c32 2.2uf mi c 2 2 1 mi c 1 2 1 c68 100p loud spkl 1 2 jr1 1 1 2 2 3 3 4 4 loud spkr 1 2 jr1 1 1 2 2 3 3 4 4 spo_ln p spo_lp spo_rn spo_rp pby 321611t-700y -n fb5 c35 680p c36 680p pby 321611t-700y -n fb6 pby 321611t-700y -n fb7 c37 680p c38 680p pby 321611t-700y -n fb8 n note: fb5~fb8 c35~c38 are reserved for emi depression r13 300 c70 1u mi c 2n micbias2 mic2 in r25 680 c72 1u mi c 1n mi c bi as1 r27 680 mic1 in mi c 5 2 1 mi c 6 2 1 r7 33 lrck lrck cpu_bclk dacdat adcdat bclk dacdat i2s(codec slave mode) adcdat microphone differential input - option 1 microphone single-end input - option 2 c33 22p c34 22p r14 300 p n power n p l_outn l_outp r_outn r_outp p n r15 300 c10 4.7uf r16 300 speaker r20 33 r21 33 r22 22 c55 0.1u r23 22 c66 0.1u hpor hpol ph2 hp out 1 2 3 4 5 c7 4.7uf figure 21. application circuit free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 81 rev. 0.9 11. mechanical dimensions dimension in mm dimension in inch symbol min nom max min nom max a 0.75 0.85 1.00 0.030 0.034 0.039 a 1 0.00 0.02 0.05 0.000 0.001 0.002 a 3 0.20 ref 0.008 ref b 0.15 0.20 0.25 0.006 0.008 0.010 d/e 6.00bsc 0.236bsc d2/e2 4.15 4.4 4.65 0.163 0.173 0.183 e 0.40bsc 0.016bsc l 0.30 0.40 0.50 0.012 0.016 0.020 notes ? 1. controlling dimension ? millimeter(mm). 2. reference documentl ? jedec mo-220. figure 22. package dimension free datasheet http:///
ALC5631Q datasheet i 2 s audio codec + class-d amp + cap-free hp 82 rev. 0.9 12. ordering information table 93. ordering information part number package status ALC5631Q-gr 48-ball qfn in ?green? package (tray) mp ALC5631Q-grt 48-ball qfn in ?g reen? package (tape & reel) mp realtek semiconductor corp. headquarters no. 2, innovation road ii hsinchu science park, hsinchu 300, taiwan tel.: +886-3-578-0211. fax: +886-3-577-6047 www.realtek.com free datasheet http:///


▲Up To Search▲   

 
Price & Availability of ALC5631Q

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X